Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

You're officially stupid if you reply

Name: Anonymous 2007-04-16 23:58 ID:2pDxRRE0

Tomorrow, when you wake up, your penis will lose half its length.  If you don't wish for this to happen, please reply to this message.

Name: Anonymous 2007-04-17 0:01 ID:T/IkfdpR

jajajaHAHUAHAUHUEHUAEUHE

Name: Anonymous 2007-04-17 0:38 ID:hxSav8fJ

NO

Name: Anonymous 2007-04-17 0:41 ID:sTBpOo2M

OMG

Name: Anonymous 2007-04-17 0:43 ID:aYbq7VA/

#
# Purpose: Find archive signatures in files
# License: Public domain
#

import sys, os

signatures = \
{
    'RAR':      'Rar!\x1A\x07\x00',
    '7Z':       '7z\xBC\xAF\x27\x1C',
    'ZIP':      '\x50\x4B\x03\x04',
#   'GZ':       '\x1F\x8B\x08',     # False positives
#   'BZ2':      'BZh',              # False positives
#   'TAR':      'ustar',            # False positives
}

limit_scan = True   # Set to False to scan for multiple archives in one file
chunk_size = 20480

#print str(signatures)

if len( sys.argv ) == 2:
    scan_dir = sys.argv[ 1 ]
else:
    scan_dir = ''

for root, dirs, files in os.walk( scan_dir ):
    #print '[*] Scanning: ' + root + os.path.sep

    for file in files:
        file_path = os.path.join( root, file )

        try:
            fp     = open( file_path, 'rb' )
            scan   = True
            offset = 0

            while scan:
                tmp = fp.read( chunk_size )

                if not tmp:
                    break

                for k in signatures:
                    c = tmp.find( signatures[ k ] )

                    if c > -1:
                        print '%-3s [%u] %s' % ( k, offset + c, file_path )

                        if limit_scan:
                            scan = False
                            break

                offset += chunk_size

            fp.close()

        except IOError:
            print '[-] Could not open ' + file_path

Name: Anonymous 2007-04-17 1:24 ID:qRD3eBQn

HEY THAT CAN'T HAPPEN.

Name: Anonymous 2007-04-17 2:37 ID:MbdO9c4r

I want that to happen thanks.

Name: Anonymous 2007-04-17 5:40 ID:58a0H0PP

i don't have a penis......

Name: Anonymous 2007-04-17 5:56 ID:E7TR97rP

Oh. i have to reply now.

Name: Anonymous 2007-04-18 0:44 ID:fKVTO0pb

Shitty thing...

Name: Anonymous 2007-04-18 14:35 ID:COKGEVvs

Tomorrow, when you wake up, your penis will turn into a radioactive killing machine.  If you don't wish for this to happen, please reply to this message.

Name: Anonymous 2007-04-18 14:40 ID:KrQN0s7a

HAL TURNER CAN DIG IT

Don't change these.
Name: Email:
Entire Thread Thread List