🐞
stomping bugs
Pinned Loading
-
Malicious-PowerShell-Dataset
Malicious-PowerShell-Dataset PublicMalicious PowerShell Dataset
-
team0se7en/CTF-Writeups
team0se7en/CTF-Writeups Publicwriteups for Capture The Flag Competitions
-
A writeup to web ctf challenge by sh...
A writeup to web ctf challenge by shellmates, command injection, a privesc. 1# Writeup Web Shellmates
2First glance at the application, it was using the command "ping -c 1 $arg" you can see that from the output of the command "Ping Service" web title, so my first try was command injection using ";id" as semicolen is a command separter, i got "okay boomer" XD, so there was some kind of filter,than I tried the pipe "|" as it acts as a command separter and pipe the stdout of the previous command to the stdin of the next one, we just need it as a command separator, tried "cat /etc/passwd" to see what users are available but got "okay boomer" again so we know it's filtering spaces and semicolons,tried "cat</etc/passwd" and it worked:
3```
4root:x:0:0:root:/root:/bin/bash
5daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.