1
General discussion / Re: Playstation 4
« on: February 22, 2013, 04:02:15 am »
So... when will the jailbreak be available?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Correct usage of SQL. You didn't even use my example. And you are wondering why "and 1=0" is not giving you any output. Do yourself a favor and learn SQL. It will be way more fun if you know what you are doing.
That's not the problem
Yo showed nog a single correct usage and i think You should learn tot create before you break:)
I will ask: please. Don't reply anyone. And to the topic poster. Please read the tutorial twice or more and learn something about PHP and SQL.
Echo the generated query including your parameters and post it here.
I suggest to use single quoting for the SQL query string so you can easily spot the quotes so for example:Code: (php) [Select]$query = 'SELECT id FROM table WHERE id="' . $id . '";
Now you can see it is quoted with "". You can leave the quotes for easier injection. Right now you would want to inject:Code: (sql) [Select]' order by 1 or '1'='1
(or order by 1--)
So the end query would be if $id == 1:Code: (sql) [Select]SELECT id FROM table WHERE id='1' order by 1 or '1'='1'
You need a ) after id='$param' so it would be $result = mysql_query("SELECT * FROM user WHERE id='$param'")or die(mysql_error());
<?php
$con = mysql_connect("localhost", "fp", "fp") or die("Couldn't connect");
mysql_select_db("practice", $con);
$param = $_GET["id"];
$result = mysql_query("SELECT * FROM users WHERE id='$param' or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo $row['name'];
}
?>
Problem is I change my IP regularly when I restart my router. Is there a way to convert your no-ip hostname into your IP with PHP?
Thanks for the info, I'll look into reverse netcat.