EG Information
Training Missions
Knowledge Bank
Pimp Us Out!
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.
|
| |
Affiliates
|
|
Enigma Group's Code Bank
Command LoneBy: blackhat11907 - Date Submitted: 2010-05-11 12:27:24 # Programmer: Brandon Dennis # Date: 5/6/2010 import os def space(): print "\n" def main(): counter = 2 userName = "brandon" password = "blackhat" userName2 = "jon" password2 = "k98kurz" userLogin = raw_input("Please Enter Username: ") userPass = raw_input("Please Enter Password: ") os.system("CLS") if userLogin == userName and userPass == password or userLogin == userName2 and userPass == password2: print "Welcome " + userLogin + " " + "To My Cmd Shell" space() print "Please Type Help For Commands" space() while counter == 2: userInput = raw_input("$" + userLogin + "$" + "../") if userInput == "help" or userInput == "Help": print "Help Command List" space() print "Help" print "Help <command name>" print "Cls" print "Dir" print "Cd" print "Net View" print "Nbtstat" print "Ping" print "Tracert" print "Telnet" print "Net Use" print "Exit" space() elif userInput == "dir" or userInput == "Dir": os.system("dir") elif userInput == "cls": os.system("CLS") elif userInput == "cd" or userInput == "Cd": space() cdChange = raw_input("Please Enter the Directory > ") os.chdir(cdChange) elif userInput == "net view" or userInput == "Net View": netView = raw_input("Enter Ip Address For Net View > ") newViewComplete = "net view " + netView os.system(newViewComplete) elif userInput == "nbtstat" or userInput == "Nbtstat": nbtstat = raw_input("Enter Ip Address For Nbtstat -a > ") nbtstatComplete = "nbtstat -a " + nbtstat os.system(nbtstatComplete) elif userInput == "ping" or userInput == "Ping": ping = raw_input("Enter Ip Address Or HostName For Ping > ") pingComplete = "ping " + ping os.system(pingComplete) elif userInput == "tracert" or userInput == "Tracert": tracert = raw_input("Enter Ip Address Or HostName For Tracert > ") tracertComplete = "tracert " + tracert os.system(tracertComplete) elif userInput == "telnet" or userInput == "Telnet": os.system("telnet") elif userInput == "net use" or userInput == "Net Use": netUseLetter = raw_input("Please Enter The Local Drive Letter > ") netUserRemote = raw_input("Please Enter The Remote Computer Name > ") netUseTotal = "net use " + netUseLetter + ": " + "\\\\" + netUserRemote + "\c$" os.system(netUseTotal) elif userInput == "exit" or userInput == "Exit": counter == 1 return(0) elif userInput == "help dir" or userInput == "Help Dir": print "Displays A List Of Files And Subdirectorys In A directory" space() elif userInput == "help cls" or userInput == "Help Cls": print "clears the Screen" space() elif userInput == "help cd" or userInput == "Help Cd": print "Displays The Name Of Or Changes The Current Directory" space() elif userInput == "help net view" or userInput == "Help Net View": print "Displays A List Of All Active And Nonactive Connections On Your Network And Sub Network" space() elif userInput == "help nbtstat" or userInput == "Help Nbtstat": print "Displays Protocol Statistics And Current TCP/Ip Connections Using NBT" space() elif userInput == "help ping" or userInput == "Help Ping": print "Checks By Sending TCP Packets To See If the Host Is Alive Or Dead" space() elif userInput == "help tracert" or userInput == "Help Tracert": print "Hops Through All Connections From You Local Computer To Your Targeted Host Computer And Displays Them All" space() elif userInput == "help telnet" or userInput == "Help Telnet": print "Remotly Connects to a Specified Computer Most Of The Time Prompting For A Username And Password" space() elif userInput == "help net use" or userInput == "Help Net Use": print "To be Able To Map A Drive To A Specific Local Drive" space() else: print "Wrong Syntax Or Command Not Avalible" space() else: space() print "Incorrect Username Or Password. Please Try Again Later" os.system("PAUSE") main()
|
| 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 |
| |
|
|
|
|
|