Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Shells trying to be too clever.

View gist:1294902
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
 
% strace -fo /tmp/x -e trace=file,execve sh -c 'exec ./fizzle.sh'
 
...
 
13204 access("/bin/sh", R_OK) = 0
13204 execve("/home/jls/projects/experiments/puppet/fizzle.sh", ["./fizzle.sh"], [/* 112 vars */]) = -1 ENOEXEC (Exec format error)
13204 open("/home/jls/projects/experiments/puppet/fizzle.sh", O_RDONLY) = 3
13204 stat("/home/jls/projects/experiments/puppet", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
13204 stat(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
13204 stat(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
13204 stat("/home/jls/.rvm/gems/ruby-1.8.7-p334/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/home/jls/.rvm/gems/ruby-1.8.7-p334@global/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/home/jls/.rvm/rubies/ruby-1.8.7-p334/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/home/jls/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/home/jls/local/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/usr/local/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/usr/bin/sh", 0x7fffececd540) = -1 ENOENT (No such file or directory)
13204 stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=960576, ...}) = 0
13204 stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=960576, ...}) = 0
13204 access("/bin/sh", X_OK) = 0
13204 stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=960576, ...}) = 0
13204 access("/bin/sh", R_OK) = 0
13204 stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=960576, ...}) = 0
13204 stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=960576, ...}) = 0
13204 access("/bin/sh", X_OK) = 0
13204 stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=960576, ...}) = 0
13204 access("/bin/sh", R_OK) = 0
13204 open("/home/jls/projects/experiments/puppet/fizzle.sh", O_RDONLY) = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.