Author Topic: [Javascript] little script but big work  (Read 1971 times)

0 Members and 1 Guest are viewing this topic.

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 230
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
[Javascript] little script but big work
« on: October 15, 2011, 04:00:44 pm »
Hello friends,
      Well java is too vast language for me, so i never tried to learn it.. but what i really like is java scripts, i mean if you know how to make java script then you can do lot of stuff on web hacking.
      Here i found some java script, use it if you like :)

View password behind asterisk 
              if any one have logged in to any account and after log out if his password still exist on password field in asterisk form , i mean if he has checked remember my password checkbox.
      so type this script in address bar and you will get password in plain text.
i know there are lots of tools available to do that but did you bring every tools with you every time?

Code: [Select]
javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k < w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('Password not found in ' + g + ' forms');}function z(f){var b=false;for(var i=0;i < f.length;i++) {var e=f[i].elements;for(var j=0;j < e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){prompt('Password found ', s)}else{alert('Password is blank')}return true;}}

Simple calculator
     
  Just copy paste this code in address bar and you can calculate simple maths.put your calculation in () like (2+2)

Code: [Select]
javascript: alert();

Edit Web Page
         This is just for fun.. at client side if you want to edit web page then copy paste this code in address bar and start editing. as you refresh page it will be in original form.

Code: [Select]
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0







« Last Edit: October 16, 2011, 02:10:00 am by ande »
iAmLuFFy

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 230
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Re: Java- little script but big work
« Reply #1 on: October 15, 2011, 11:11:53 pm »
Nice scripts, but not really to hack but they are useful

Well i didn't tell that these script are for hacking... i said if you know javascript then you can make out lot of web hacking stull :P
iAmLuFFy

Offline ande

  • Owner
  • King
  • *
  • Posts: 2453
  • Cookies: 222
    • View Profile
Re: [Javascript] little script but big work
« Reply #2 on: October 16, 2011, 02:10:24 am »
This is javascript, not java. Big difference. Just say'n.

Offline xzid

  • Knight
  • **
  • Posts: 335
  • Cookies: 40
    • View Profile
Re: [Javascript] little script but big work
« Reply #3 on: October 16, 2011, 10:37:12 pm »
Quick thing about #1 & #2, the lastest versions of firefox(7) can't alert in url:

Code: [Select]
javascript:alert("HAI!");
won't work, although:

Code: [Select]
javascript:9*4
will produce a page with "36" as the output. On chrome the latter does not work. btw chrome is annoying as all hell for doing this, they automatically remove the "javascript:" prefix you put.

Opera works w/both.

In kinda relation to #1 something like this can be of use, it will send all form password field values to a remote logger when form is submitted. Also attempts not to screw up the regular flow of JS on the webpage. IE would require extra compatibility code.

http://pastebin.com/uU73yeuF

Had troubles posting code, used pastebin instead of <code> tags.
« Last Edit: October 16, 2011, 10:46:28 pm by xzid »

Offline rileytunbridge

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
Re: [Javascript] little script but big work
« Reply #4 on: September 22, 2012, 05:14:05 pm »


Thank you so much.

PublicEnemy

  • Guest
Re: [Javascript] little script but big work
« Reply #5 on: September 22, 2012, 08:58:36 pm »
Thread sucks. Anyways, this is what i always use to change cookies:

Code: [Select]
javascript:void(document.cookie=prompt(document.cookie))

Offline Dark Nebulae

  • Peasant
  • *
  • Posts: 118
  • Cookies: -78
  • Gender: Male
  • Unleash the Hacker within you
    • View Profile
Re: [Javascript] little script but big work
« Reply #6 on: October 30, 2012, 10:46:55 am »
One simple way to know what is behind the astrick is described below:
1) Right-click in the password field and select Inspect element.




2) Search for the <input type="password" name="Passwd" id="Passwd">


3) Now replace <input type="password"  with <input type="text" and press enter. And you are done.


Sorry......
this method doesn't work in IE but works in Chrome and Firefox(not tested SAFARI and OPERA).
Trust is like a piece of paper.Once it is crumbled,it can never be perfect.

Offline jeremy78

  • Serf
  • *
  • Posts: 37
  • Cookies: 9
  • Gender: Male
    • View Profile
Re: [Javascript] little script but big work
« Reply #7 on: October 30, 2012, 08:28:24 pm »
One simple way to know what is behind the astrick is described below:
1) Right-click in the password field and select Inspect element.




2) Search for the <input type="password" name="Passwd" id="Passwd">


3) Now replace <input type="password"  with <input type="text" and press enter. And you are done.


Sorry......
this method doesn't work in IE but works in Chrome and Firefox(not tested SAFARI and OPERA).
It works in safari I've tested it before but I'm not sure about opera I might test it out on opera some other time

pllaybuoy

  • Guest
Re: [Javascript] little script but big work
« Reply #8 on: October 30, 2012, 09:02:45 pm »
Dont confuse java with javascript bro , they are entirely different languages

 



Intern0t SoldierX SecurityOverride programisiai
Want to be here? Contact Ande, Bluechill or Kulverstukas on the forum or at IRC.