创建不同语言的脚本以从服务器下载文件。可以通过一个文件发送文件。
filesender的Python项目详细描述
目录
文件发送程序
项目URL:https://github.com/EmilienPer/FileSender
创建了用于OSCP认证的文件提交程序。 它的目标是生成一个脚本,将文件以不同的语言上传到目标。 基本机制如下:
- 将文件复制到临时目录中
- 启动服务器(如果需要)
- 创建脚本以从服务器下载文件或生成文件
- 将脚本发送到目标
要求
如果没有以下工具,在Python2.7上运行的文件提交程序将无法正常工作
需要以下工具:
- upx(/usr/bin/upx)
- exe2bat.exe
- 葡萄酒
安装
sudo pip install filesender
选项
Option | Shortcut | Description |
---|---|---|
file | The path to file to send | |
method | the language of the script (powershell,hex,ftp,wget,vbscript,exe2bat) | |
type | the type of output/sending method (print / get / post) | |
dest | the destination directory on the target | |
--server-ip | The local ip address | |
--server-port | The local port | |
--url | -u | The Target URL |
--params | -p | A json {key:value} where value=<SCRIPT> when should be replace by the script |
--cookies | -c | The cookies json |
--timeout | The 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并使用示例或用例(如果合适)清楚地解释。