As with any self respecting beginners tutorial i'm gonna show you how to make your browser say 'hello world'. To do this you first need to empty the url bar of the browser completely, then type in the following code:
javascript:alert('Hello World');
This uses the function alert which as you should now know brings up an alert box.
Now onto something a bit more useful. Most websites you visit now will save a cookie on your computer, to see this you can use the following js:
javascript:alert(document.cookie);
You can also use the void function to add or change a variable. For my example i'm going to add a field called 'admin' and have its value set to 'true'. Here's how to do it:
javascript:void(document.cookie="Admin=True");
To see what effect this had use the following js again:
javascript:alert(document.cookie);
Alternatively you can concatenate the two commands (or for that matter any number of commands), in the following way:
javascript:void(document.cookie="Admin=True");javascript:alert(document.cookie);
Don't forget the ';' at the end of each command!
Now to fiddle with the http://elitehackers.info/forums forms/ >:) . If you right click and look at the source code for the page the first form you will see should be this:
All the forms are stored in any array called 'forms' so the first form will be 'forms[0]' and the second 'forms[1]' etc. We are going to be changing the value of the 'showposts' field.
First lets bring it up in an alert box so we can see what it's currently set as:
javascript:alert(document.forms[0].showposts.value);
This should popup an alert box shiwng the current value of 'showposts' which is '0'. To change this to '1' we will use the void function again:
javascript:void(document.forms[0].showposts.value="1");javascript:alert(document.forms[0].showposts.value);
Obviously this isn't very useful but used in other situations can come in handy. That's all folks!
Subscribe to:
Post Comments (Atom)
About Me
- BBTUNA
Blog Archive
-
▼
2010
(41)
-
▼
February
(41)
- Change The Default Location For Installing Apps
- Closing Open Holes, System Security How to close o...
- Create An Ftp Server On Your Pc With Serv-u
- Easily Find Serial Numbers On Google
- How To Find Ftp's The Easy Way
- HowTo: Create a Reverse SSH Tunnel
- Show apps that use internet connection at the moment
- How to install, configure and work a LAMP stack wi...
- Creating a simple key logger
- How to make a hidden user account
- Locking and Hiding Hard-Drives
- Batch Files
- Securing your PHP code
- Bypassing login scripts with SQL Injection
- How to hack boost mobile
- Hacking phpBB 2.0.19 or lower by stealing cookies
- JavaScript Injection
- Bypassing Web Filtering Systems
- Obtaining The Administrative Account
- Packet Generator
- Acer Aspire One BIOS Recovery
- Howto: Ubuntu Linux convert DHCP network configura...
- How to Setup SSH Server in Windows with freeSSHd
- Bypass Windows Vistas and Windows 7’s Reduced Func...
- Setup Linksys Router With Radius Server Authentica...
- Twitter Security Cam
- Connect USB Drive to VMware ESX Server
- How to Create an Internet Kiosk in 10 Easy Steps o...
- Install Squid Proxy Server on CentOS
- VNC ( Virtual Network Computing ) on CentOS
- How to trunk ports on a Cisco Switch
- Linux Kiosk system
- Trunking ports on switches
- How to disable Last Logon Name in Windows 2000,XP&...
- Metasploit 3.2 VBA Support for generating payloads
- Installing NaviAgent on ESX 3.x and 3.5x
- How to Convert a Video Into a Gif Animation
- VMware ESX storage: How to get local storage to ac...
- How to Install and Configure DHCP Server in Ubuntu...
- Aircrack-ng on the MAC
- Reflashing FON Fonera 2200
-
▼
February
(41)
0 comments:
Post a Comment