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 Articles
Return to Category Selection
Javascript Injection - Submitted By: champloo 2008-08-19 11:48:48
Javascript Injections These three things i will try to explain to you: Injection Basics, Cookie and Form Editing. In these articles i will teach you only the super basics of javascript and for all those who want to learn more, google advanced javascript injections Basics All you need for injecting this very useful stuff, is URL. When you use them, delete the whole url bar, even http:// - leave your bar totally empty, and then...onto the injecting. First thing your have to type is '' javascript: '' (without '' '') That means we are using, guess what, javascript??? There are 2 main commands that you will use (sometimes even one) - they are: alert(); and void(); Now that we know something about this, we are going to make a simple task. Go to any site and try to make a window appear saying: I got it Try to do it on your own, and if you cant write it, look here: javascript:alert('I got it'); Cookies (yummy) If you are not familiar with the term ''cookie'' please google it because i dont want to explain it now. So, after you found out what cookies are, we will learn how to view them. We will check them with a simple script like this: javascript:alert(document.cookie); Now, you will see a pop-up window displaying information on your cookies. For editing, we have to use that void(); command javascript:void(document.cookie="Field=Value"); This script can change the existing info or create a new value. Replace ''Field'' with an existing field or create a new values. Then replace ''Value'' with whatever you want. This is a very popular script: javascript:void(document.cookie="Authorized=yes");alert(document.cookie); This alert(document.cookie); at the end will show you the effect of this script. Forms To edit the values, you can sometimes edit the downloaded html and submit whatever you want. Then, the form comes up. Every form is stored like this: forms X is the number which starts with 0 and goes on by order (1,2,3,...) The most common situation will be that x is 0 so,.... forms[0] I saw a challenge on HTS requiring to combine e-mail and javascript. You cant download the script but you can check to see what value a certain form element has by using this script: javascript:alert(document.forms[0].to.value) So, heres the example: javascript:void(document.forms[0].to.value=''your email");alert(document.forms[0].to.value); Again, just like the alert(document.cookie); at the end will show you the effect. Another example goes like this: javascript:void(document.forms[0].dir.value="logFiles");alert(document.forms[0].dir.value) Try to figure it out ~This article was originally written by Sauron. Return to Category Selection
Comment By: thesweetdevilguy 2011-08-20 15:48:06
Thanks for this neat stuf.f.
Comment By: cocopuffs239 2011-08-25 22:52:45
was looking online everywhere only to know it was always right on this website thanks =]
Comment By: bolemis 2011-09-04 06:40:34
When im using firefox all this injections doesn't work, but when i switch to IE or chrome it works. is this a common firefox problem or is it just me?
Comment By: Feld Grau 2011-12-18 12:33:41
Bolemis,I was having the same problem as I use Firefox as well. Javascript does not work on new versions of Firefox,so use the Scratchpad(found under tools) ;)
Comment By: CoDGuardian 2011-12-20 09:58:00
Instead of Scratchpad, you might also want to try the Web Console which is also found under tools.
If you wish to submit a comment, you must be a registered member and logged in. Login or Register.
Return to Category Selection
|
| |
|
|
Who Visited EnigmaGroup Today?
1516 Guests, 297 Users (193 Spiders)
nmobin27, BlAd373, myfabregas, spartanvedicrishi, DrOptix, g3nu1n3, saraf, VireekadiaFap, obencefoozy, memoryshot, mongrel88, drag0n, Kearstin29, litbk, alexelixir, r0z4, Abhinav2107, theanonymous21, greatg, CreedoFiegree, bivaEmilltite, posthuman01, Taireegaddita, Taicadine, c_a13, hizImmoli, scifics, slchill, KELATALFTUS, kynapse, Tonyui, Hackpad, Epilioptiop, 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, 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, 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, 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, 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, closednetwork99, soroimmuror, 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, lamb, x1rt4m, ToutousaRulty, vipervince2002, mannavard1611, BinaryShinigami, Duchdund, afgnumgt, Anatissa, darkfire1515, bennyblanco5000, Mmmett50, ToryLogsEsoff, impalwinona, Kelsfednege, ensubbrut |
| |
|
|
|
|
|