Results 1 to 4 of 4
  1. #1
    m0k1's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Posts
    517
    Reputation
    20
    Thanks
    500
    My Mood
    Cool

    [php] Cant do it :(

    Hi, all i making some site login ... but i want to connect it with vbulletin but i can't ... i always fail ...

    I need to do this md5((md5(userpassword)+salt),salt is some custom numbers in mysql table so i do all of that but i think to salt is not query ... can someown help me with this ?

    part of that code
    https://paste2.org/p/1826539
    Due to the global crisis....I do not have the grit....
    I have no weed....
    Fuck the U.S. administration?



  2. #2
    Alexlemaitre's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    At Nice :D
    Posts
    12
    Reputation
    10
    Thanks
    7
    My Mood
    Amused
    Hi,

    I look up at your code and i see some different parts of this code which are not really good, i put another structure to correct it and i expect it'll work .

    I changed the $ names just as i do it when i program .
    If you need help, tell us.

    As the script in case IF, i see that you put if ... < 1
    I think there's no reason to put this, so i changed it to == true

    Last thing is when you put a $_name inside a SQL query, you must put this style ( i use it )

    ==> $name = "SELECT ... FROM ... WHERE ... =(single quote)(double quote)(dot)$name(dot)(double quote)(single quote) ... ";

    Alex,


    <?php

    include ("connect.php");

    if (isset($_POST['submit']) && $_POST['submit'] == "TEXT_APPEAR_OF_BUTTON") // name button ...
    {
    $username1=$_POST['username'];
    $passwords=$_POST['password'];
    $sql = "SELECT salt FROM user WHERE username = '".$username1."'";
    $query = mysql_query($sql);
    $salt = mysql_fetch_array($query);

    $password1=md5($passwords);
    $password2=md5($password1 && $salt);

    $sql_user = "SELECT * from user where username= '".$username1."' and password='".$password2."'";
    $req_user = mysql_query($sql_user) or die("Could not get admin");
    $user = mysql_fetch_array($req_user);

    if(strlen($user['username']) == true )
    {
    echo "wrong user /pass.";
    }
    elseif(strlen($passwords) == true )
    {
    echo "wrogggg.";
    }
    else
    {
    $username = $_SESSION['pwngame'];
    echo "thanks for login !";
    }


    }
    ?>
    Last edited by Alexlemaitre; 12-22-2011 at 06:58 AM.
    Forum Statistics :

    • 10 posts [v]
    • 20 posts [x]
    • 30 posts [x]
    • 50 posts [x]
    • 100 posts [x]
    • 200 posts [x]
    • + 500 posts [x]


    KnowLedges :

    • C [ | | | | | | | | | | ] - 60%
    • C++ [ | | | | | | | | | | ] - 40%
    • C# [ | | | | | | | | | | ] - ~30%
    • VB [ | | | | | | | | | | ] - 100% - COMPLETE but useless
    • .NET [ | | | | | | | | | | ] - ~10%
    • JAVA [ | | | | | | | | | | ] - ~37%
    • Assembly [ | | | | | | | | | | ] - ~58%


    Already done & Projects :
    • Create macro programming [v]
    • Dump one game [v] - DONE Combat Arms Europe / Warrock
    • Dump & the disassemble of one game [v]
    • Create first hotkey hack [!] - Working On
    • Create first D3D hack [x]
    • Release private hack [x]
    • Already Banned from one FPS game [v]


  3. The Following User Says Thank You to Alexlemaitre For This Useful Post:

    m0k1 (12-25-2011)

  4. #3
    m0k1's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Posts
    517
    Reputation
    20
    Thanks
    500
    My Mood
    Cool
    Great Thanks
    Due to the global crisis....I do not have the grit....
    I have no weed....
    Fuck the U.S. administration?



  5. #4
    Alexlemaitre's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    At Nice :D
    Posts
    12
    Reputation
    10
    Thanks
    7
    My Mood
    Amused
    If you're code is okay, i think you can close the topic .

    Alex,
    Forum Statistics :

    • 10 posts [v]
    • 20 posts [x]
    • 30 posts [x]
    • 50 posts [x]
    • 100 posts [x]
    • 200 posts [x]
    • + 500 posts [x]


    KnowLedges :

    • C [ | | | | | | | | | | ] - 60%
    • C++ [ | | | | | | | | | | ] - 40%
    • C# [ | | | | | | | | | | ] - ~30%
    • VB [ | | | | | | | | | | ] - 100% - COMPLETE but useless
    • .NET [ | | | | | | | | | | ] - ~10%
    • JAVA [ | | | | | | | | | | ] - ~37%
    • Assembly [ | | | | | | | | | | ] - ~58%


    Already done & Projects :
    • Create macro programming [v]
    • Dump one game [v] - DONE Combat Arms Europe / Warrock
    • Dump & the disassemble of one game [v]
    • Create first hotkey hack [!] - Working On
    • Create first D3D hack [x]
    • Release private hack [x]
    • Already Banned from one FPS game [v]


Similar Threads

  1. dll for those who cant even google :P
    By jam in forum Gunz Hacks
    Replies: 5
    Last Post: 06-07-2007, 03:32 AM
  2. Cant Use Public Hacks
    By King Ownage in forum Suggestions, Requests & General Help
    Replies: 9
    Last Post: 04-02-2007, 12:12 AM
  3. blackpkerstr emty you mail box, I cant send anything to you
    By radnomguywfq3 in forum Spammers Corner
    Replies: 1
    Last Post: 02-25-2007, 11:51 AM
  4. cant log in?
    By naughtynurse in forum WarRock - International Hacks
    Replies: 4
    Last Post: 03-31-2006, 10:16 PM
  5. I cant open WPE
    By ValconGSX in forum WarRock - International Hacks
    Replies: 8
    Last Post: 01-17-2006, 05:10 PM