EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff

Training Missions

Read Me First
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Captcha Cracking
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom
/dev/extra

Knowledge Bank

Discussion Forums
Exploit Database New
PasteBin New
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Downloads
Tools

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Pimp Us Out!

Review enigmagroup.org on alexa.com

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site And Create A Link Back To Enigma Group.

Enigma Group

Enigma Group

Enigma Group

Enigma Group

 

Affiliates



The Urinal

hackhound.org

suck-o.com

hack.org.za

flyninja.net

 

Enigma Group's Code Bank


Command Lone

By: blackhat11907  -  Date Submitted: 2010-05-11 12:27:24

  1. # Programmer: Brandon Dennis
  2. # Date: 5/6/2010
  3.  
  4. import os
  5.  
  6. def space():
  7. print "\n"
  8.  
  9. def main():
  10.  
  11. counter = 2
  12. userName = "brandon"
  13. password = "blackhat"
  14. userName2 = "jon"
  15. password2 = "k98kurz"
  16.  
  17. userLogin = raw_input("Please Enter Username: ")
  18. userPass = raw_input("Please Enter Password: ")
  19. os.system("CLS")
  20.  
  21. if userLogin == userName and userPass == password or userLogin == userName2 and userPass == password2:
  22. print "Welcome " + userLogin + " " + "To My Cmd Shell"
  23. space()
  24. print "Please Type Help For Commands"
  25. space()
  26.  
  27. while counter == 2:
  28.  
  29. userInput = raw_input("$" + userLogin + "$" + "../")
  30.  
  31. if userInput == "help" or userInput == "Help":
  32. print "Help Command List"
  33. space()
  34. print "Help"
  35. print "Help <command name>"
  36. print "Cls"
  37. print "Dir"
  38. print "Cd"
  39. print "Net View"
  40. print "Nbtstat"
  41. print "Ping"
  42. print "Tracert"
  43. print "Telnet"
  44. print "Net Use"
  45. print "Exit"
  46. space()
  47.  
  48. elif userInput == "dir" or userInput == "Dir":
  49. os.system("dir")
  50.  
  51. elif userInput == "cls":
  52. os.system("CLS")
  53.  
  54. elif userInput == "cd" or userInput == "Cd":
  55. space()
  56. cdChange = raw_input("Please Enter the Directory > ")
  57. os.chdir(cdChange)
  58.  
  59. elif userInput == "net view" or userInput == "Net View":
  60. netView = raw_input("Enter Ip Address For Net View > ")
  61. newViewComplete = "net view " + netView
  62. os.system(newViewComplete)
  63.  
  64. elif userInput == "nbtstat" or userInput == "Nbtstat":
  65. nbtstat = raw_input("Enter Ip Address For Nbtstat -a > ")
  66. nbtstatComplete = "nbtstat -a " + nbtstat
  67. os.system(nbtstatComplete)
  68.  
  69. elif userInput == "ping" or userInput == "Ping":
  70. ping = raw_input("Enter Ip Address Or HostName For Ping > ")
  71. pingComplete = "ping " + ping
  72. os.system(pingComplete)
  73.  
  74. elif userInput == "tracert" or userInput == "Tracert":
  75. tracert = raw_input("Enter Ip Address Or HostName For Tracert > ")
  76. tracertComplete = "tracert " + tracert
  77. os.system(tracertComplete)
  78.  
  79. elif userInput == "telnet" or userInput == "Telnet":
  80. os.system("telnet")
  81.  
  82. elif userInput == "net use" or userInput == "Net Use":
  83. netUseLetter = raw_input("Please Enter The Local Drive Letter > ")
  84. netUserRemote = raw_input("Please Enter The Remote Computer Name > ")
  85. netUseTotal = "net use " + netUseLetter + ": " + "\\\\" + netUserRemote + "\c$"
  86. os.system(netUseTotal)
  87.  
  88. elif userInput == "exit" or userInput == "Exit":
  89. counter == 1
  90. return(0)
  91.  
  92. elif userInput == "help dir" or userInput == "Help Dir":
  93. print "Displays A List Of Files And Subdirectorys In A directory"
  94. space()
  95.  
  96. elif userInput == "help cls" or userInput == "Help Cls":
  97. print "clears the Screen"
  98. space()
  99.  
  100. elif userInput == "help cd" or userInput == "Help Cd":
  101. print "Displays The Name Of Or Changes The Current Directory"
  102. space()
  103.  
  104. elif userInput == "help net view" or userInput == "Help Net View":
  105. print "Displays A List Of All Active And Nonactive Connections On Your Network And Sub Network"
  106. space()
  107.  
  108. elif userInput == "help nbtstat" or userInput == "Help Nbtstat":
  109. print "Displays Protocol Statistics And Current TCP/Ip Connections Using NBT"
  110. space()
  111.  
  112. elif userInput == "help ping" or userInput == "Help Ping":
  113. print "Checks By Sending TCP Packets To See If the Host Is Alive Or Dead"
  114. space()
  115.  
  116. elif userInput == "help tracert" or userInput == "Help Tracert":
  117. print "Hops Through All Connections From You Local Computer To Your Targeted Host Computer And Displays Them All"
  118. space()
  119.  
  120. elif userInput == "help telnet" or userInput == "Help Telnet":
  121. print "Remotly Connects to a Specified Computer Most Of The Time Prompting For A Username And Password"
  122. space()
  123.  
  124. elif userInput == "help net use" or userInput == "Help Net Use":
  125. print "To be Able To Map A Drive To A Specific Local Drive"
  126. space()
  127.  
  128. else:
  129. print "Wrong Syntax Or Command Not Avalible"
  130. space()
  131. else:
  132. space()
  133. print "Incorrect Username Or Password. Please Try Again Later"
  134. os.system("PAUSE")
  135.  
  136. main()
  137.  
Return to python category list

Who Visited EnigmaGroup Today?

1511 Guests, 297 Users (189 Spiders)
alexelixir, myfabregas, mongrel88, drag0n, spartanvedicrishi, r0z4, Abhinav2107, theanonymous21, greatg, CreedoFiegree, bivaEmilltite, posthuman01, Taireegaddita, Taicadine, c_a13, hizImmoli, scifics, slchill, KELATALFTUS, kynapse, Tonyui, Hackpad, Epilioptiop, VireekadiaFap, Mamorite, IodindDog, brunoriversyhn, Effomeidonize, ReottphoffBom, arktek, burgeoningneophyte, TradaGreant, SlayingDragons, Waldlyeps, Arsenal, CJ_Omaha, Ryuske, thethird3y3, todayadvila, pwnpwnlolz, NeetaexomYgom, ookami-namikaze, dot_Cipher, Unotohumsmush, SaubymorRoyab, loltyg, Ausome1, Rik, hrangel, cyber-guard, Meonkzt, mori, 31415926, optioniLele, intorerse, FlifobbyFloks, Ios, saraf, Røgue, cossyDrybrich, IvanDimitriev, havisham, KIKNWING, fitz, fleeloCycle, hackboy302, strudels, CootoDorbeeft, gymnediny, hustleman9tv, comando300, Ysri13, thatoneguy, Paran0id, whoami, Pitanteerve, Reapon, cls777, Afrika, suetekh, somebody777, floontiny, Frudopvia, jasonbourne, zombiehack640, CloverCipher, spoosh, Fraubbova, rulebreaker, dncjor, obencefoozy, Fintyoptots, viRuleNt, NipPaineHainy, TheHarrisonW, Jamesgo, TheGanjator, psychomarine, 1421carter, tingle65, claudius, Feld Grau, Partisan, Gunslinger, gydeqqzpn, yshiau, Zaccarato, chromoSone, priovasashCor, ellisp, GothicLogic, keetone, M0rdak, UsedDeteKef, nhorton, archestraty, HatriteBeft, JC06dc5, alpha1, spg, dark_void, wakazi, mtroscheck, TheCheeseDemon, ach.n30, sahariar, hervelegeraf, Psiber_Syn, hackaday, Mod777, neompenly, pollolololo, SnoopSky, Cigmimifs, DrOptix, ProloG-Shaman, unicornrainbow, cheapnikeshoxog, bobsters, foofthoorgo, polemarchos, avacraft, spencerwilliams23, lotato, ryanjcrook, dollerolf, robintenboden, rospark, WexEmbet, BeefSupreme, Hessesian, whydoyoulook, cdpirate, DnA-Ender, CaNcEr, zheincnoob, Vengeance987, justforfun363, RawTeefecycle, Squissesk, aVoid, SaMTHG, neodude, Marion1p, Ops, ddxc, BlAd373, Klosse, khamhou, samsatHD80, PauffPubadvic, AnnaNoult, SexyCreerve, newb1, robster1977, Blizer, Dudleypagrove, Mr_KaLiMaN, FirewallPenetrator, GMo, Seasharp, mrchicken1, Zaxem, N4g4c3N, MaxMeier, Ian, sander.ashwin, Predatorc, lonely.connection, ElEnfermado, wavyd, dirkdanblue, cve916, kalak55, a1los, jell0, Exclaw, veceattainc, Muselele, Mr Pacifist, stylish007, zach, litbk, closednetwork99, soroimmuror, memoryshot, PlaneReaction, Wamemanytex38, DieAble, d0seN_36b, jeremy.whitson, lol, nefeolnb, Noticon, statix, anandoump, RomeoG, advilapyday, snorapa, Gkjt, autotuneuser, beanulpinee, 2142, kiklopas, door51, Pizza, deepakkumar, makler2004, M4rcy, Xargos, bdkoenig, Blavatsky, m4f10, Huasca, itsme, xu_lain, Nikhil, ChewBigRed, samxoxo, incicaMaidits, toudioria, Chidokage, Jigoku, cesecyclelm, schn1ffl3r, sam20000, learning, kentora, San Marino, Nightraven, zanydouner, FrofErrodslot, FatalEror, wheaties, akki, AlexDiru, unclejos666, override101, blink_212, uncowstientee, lilkpoigogs, Innonaenupt607, Killshot, ZheIncKnight, ActictGlync, acarseflalk, ___, trashsporn, Memartent, Zoorsornaks, z3z3, heyhey123, Ghajnm, usaliaPels, Ordeptpen, pelly, quellense, Szuba, nmobin27, lamb, x1rt4m, ToutousaRulty, vipervince2002, mannavard1611, BinaryShinigami, Duchdund, afgnumgt, Anatissa, darkfire1515, bennyblanco5000, Mmmett50, ToryLogsEsoff, impalwinona, Kelsfednege, ensubbrut, ant0601, Alpha0mega
 
Enigma Group