Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Commit

Permalink
edited for sqlmap issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekultek committed Nov 19, 2016
1 parent f8ceb04 commit 7484cd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 1.7.0.2
- Fixed issue with sqlmap flag where the file wasn't opened
- Bumped version number
- Drafted re-release

# Version 1.7.0
- Added sqlmap to the mix, you can now run sqlmap through your SQL_VULN file and it will work successfully
- Added new flag for sqlmap
Expand Down
2 changes: 1 addition & 1 deletion lib/misc/banner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def spider

# The version the program is currently in
def version
'1.7.0.1' # Version number <major>.<minor>.<patch>.<monthly commit>
'1.7.0.2' # Version number <major>.<minor>.<patch>.<monthly commit>
end

#
Expand Down
4 changes: 2 additions & 2 deletions lib/modules/core/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def parse(site, tag, i)
end

def sqlmap_config
data = File.open("#{PATH}/lib/lists/default_sqlmap_config.txt", "w")
data = File.open("#{PATH}/lib/lists/default_sqlmap_config.txt", "a+")
if data.read == "false"
commands = FORMAT.prompt("Enter sqlmap commands, bulkfile is already default")
answer = FORMAT.prompt("Would you like to make these commands your default?[y/N]")
answer.downcase.start_with?("y") ? File.open("#{PATH}/lib/lists/default_sqlmap_config.txt", "a+") { |config| config.write("#{commands}") } : File.open("#{PATH}/lib/lists/default_sqlmap_config.txt", "a+") { |config| config.write("false") }
answer.downcase.start_with?("y") ? File.open("#{PATH}/lib/lists/default_sqlmap_config.txt", "w") { |config| config.write("#{commands}") } : File.open("#{PATH}/lib/lists/default_sqlmap_config.txt", "w") { |config| config.write("false") }
else
config = File.read("#{PATH}/lib/lists/default_sqlmap_config.txt").strip!
return "#{config}"
Expand Down

0 comments on commit 7484cd6

Please sign in to comment.