Skip to content

Commit

Permalink
Update README.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 17, 2024
1 parent 36c7152 commit 8561cc3
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion level06/README.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,46 @@
# 06 - Todo
# 06

Login

```b
> ssh level06@$(ifconfig|grep 'inet '|awk 'NR==2 {print $2}') -p 4242
> Password: viuaaale9huek52boumoomioc
```

Inspect (there are 2 files)

```b
> file level06
level06: setuid ELF 32-bit LSB executable,
Intel 80386,
version 1 (SYSV),
dynamically linked (uses shared libs),
for GNU/Linux 2.6.24,
BuildID[sha1]=0xaabebdcd979e47982e99fa318d1225e5249abea7,
not stripped
```

```b
> cat level06.php
#!/usr/bin/php
<?php
function y($m) {
$m = preg_replace("/\./", " x ", $m);
$m = preg_replace("/@/", " y", $m);
return $m;
}
function x($y, $z) {
$a = file_get_contents($y);
$a = preg_replace("/(\[x (.*)\])/e", "y(\"\\2\")", $a);
$a = preg_replace("/\[/", "(", $a);
$a = preg_replace("/\]/", ")", $a);
return $a;
}
$r = x($argv[1], $argv[2]); print $r;
?>
```

0 comments on commit 8561cc3

Please sign in to comment.