Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 13-06-2005, 02:19 PM   #1 (permalink)
In The Zone
 
Join Date: Jun 2005
Posts: 262
Default Override Commands With Batch Files


In one of my earliest articles, Batch File Tricks, i described a trick using batch files that enables you to override commands.

The basics of it's functioning are simple, since .COM , .BAT and .EXE files can be executed (run) without the need for extensions. During some trials, i noticed that batch files (.BAT) were given preference to .COM and .EXE files in [strong]MS-DOS 6.0 and below, and also in the ms-dos prompt in windows 98 and before[/strong], so i thought if using this in other ways was possible. I was right. Few minutes later, i created my first "maliicious" code ever, altough it was more funny than malicious now that i look back on it. So i created a file called [strong]edit.bat[/strong] .

For those of you who know these computing basics, the edit command is used in DOS to create or change files in a simple text editor, and the edit command's default file is [strong]edit.com[/strong] but as i've mentioned, i had noticed earlier, .BAT files we're executed before .COM files, i created a file edit.bat and inserted into it the following code -


@ECHO OFF
ECHO DOS HAS ENCOUNTERED A SERIOUS ERROR AND WILL NOW SHUT DOWN, PRESS ANY KEY TO TERMINATE...
PAUSE
EXIT

Explaining this line by line, Line 1 and 2 are irrelevant, they are used only to display messages. Line 3 (PAUSE) causes everthing to wait until a user pushes any button and when he pushes it, Line 4 (EXIT) is executed and DOS is shut down and you're returned to windows. Similarly, i created other files as well, like cls.bat , del.bat , deltree.bat , and format.bat .Also, you can program these files to do other things than just exit DOS, more malicious stuff like formatting the computer, etc...

This only works in the directory in which you put the batch files. For best effect, put it in as many directories as possible.

Source - (My own so if you've read this, don't call it a rip-off), and yes, if the mods deem this as advertising please inform me and i will no longer post the source.

http://www.cyberia.in/?p=93
cyberia.in is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-06-2005, 02:21 PM   #2 (permalink)
In The Zone
 
Join Date: Jun 2005
Posts: 262
Default

the format.bat implementation proves that this can be used for good purposes also by blocking the format code.

Of course, you can also block the delete command
cyberia.in is offline  
Old 13-06-2005, 05:03 PM   #3 (permalink)
In The Zone
 
Join Date: Dec 2004
Location: Vice City
Posts: 461
Default

I still remember Ankit Fadi's Batch file tutorial......Frm his Ethical Hacking book and online version is also available on astalavista...it ws pretty gud..
__________________
--------------
Lovedeep Wadhwa
cheetah is offline  
Old 13-06-2005, 05:45 PM   #4 (permalink)
In The Zone
 
Join Date: Jun 2005
Posts: 262
Default

I've read ankit fadia's batch file tutorial, and i'll assure you it's not from there. I found this myself as i've mentioned above, altough it was soething sitting there waiting to be discovered, so the chances of somebody having found this before me are actually quite high but i don't know...
cyberia.in is offline  
Old 21-06-2005, 01:36 PM   #5 (permalink)
In The Zone
 
Join Date: Jun 2005
Posts: 262
Default

Article Compiled and Extended. Features of Version 1.0

- Functioning Explained
- How to Apply Trick to all Directories (Including Windows XP) (NEW)
-PDF Format

Download NOW

http://rapidshare.de/files/2518775/B...ricks.pdf.html
cyberia.in is offline  
Old 21-06-2005, 01:39 PM   #6 (permalink)
In The Zone
 
Join Date: Jun 2005
Posts: 262
Default

Version 1.1 with direct registry integration for system variables included

http://www.archive.org/download/Batc...Tricks_1.1.pdf
cyberia.in is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clmlbx
- by Krow
- by Who
- by Tech&ME
- by icebags
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 08:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2