A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
@RichardBrook I have LG Magna, Asus Zenfone, and Samsung Grand
Cannot acces web console here but i think its something to do with the database ????
I cant touch my computer for 2 weeks :(
Playing with the database helps, but if you know php well enough to understand only by reading, then I guess it would be very possible.
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
@RichardBrook it has something to do with
the db_blablabla[/spoiler]
Or….
<!- something with “uid”
Or….
[Spoiler]something with the “ authorization” -!>
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
@RichardBrook , what do you mean mobile phone?
I think you are suggesting a smartphone, maybe? lol xD
There’s no place like 127.0.0.1
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
Chronon don’t ask too much, there is no fun in doing a challenge if there is no challenge but a walkthrought, right ? :p
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
I know we have to make the our own version of the level….
But i want to know how to complete this on smartphone.
Still looking…..
Reading the code I think the only way to receive a email is if you put your email in database, but I don’t know if this is the purpose of level.
?
I think we have to make our own version, and make it redirect to the “level completed” link after we put the “memtash”
???????
Just sayin'
But if you take a look at the php, you will see that we will need a database
I got the answer from @Chronon , it’s a 4 letter hacking method and i have less knowledge to that hack . There is exact same tutorial on the web to complete this level but you have to find it.
As mentioned before; running it locally is just a method to debug more easily:
[list=1]
[] You can insert ‘var_dumps()’ and ‘echo’ throughout the code
[] You can see server logs for errors
[*] You can modify the code to be more verbose
[/list]
This does not SOLVE the challenge for you, it just makes it EASIER to find out what is going on with the code.
I repeat, running it locally is not needed to solve this challenge, but if you can’t read/audit PHP code it might be handy.
To get the github repository to work:
Follow/install this to install mysql/php/apache.
After that is done, open terminal:
apt-get install git
cd /var/www
git clone https://github.com/HackThis/real7-login.git
cd real7-login
nano class.user.php
Now edit the ‘__construct()’ function so it looks like this:
public function __construct() {
$this->db_name = "real7";
$this->db_host = "localhost";
$this->db_user = "root";
$this->db_pass = "your_root_password_here";
$this->db = new PDO("mysql:host=$this->db_host;dbname=$this->db_name", $this->db_user, $this->db_pass);
$this->db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
Save the file, go to a terminal:
mysql -u root -p
[... type in password ...]
create database real7;
use real7;
CREATE TABLE users( uid INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, username VARCHAR(30) NOT NULL, password VARCHAR(30) NOT NULL, email VARCHAR(50), reset VARCHAR(150) );
insert into users(username,password,email) values("admin","123","admin@example.com");
select * from users;
Now you can visit the site at http://localhost/real7-login/
After this the real challenge begins :-)
WaRWolFz crew