Metadata-Version: 1.0
Name: winkar_utils
Version: 0.0.3
Summary: Util functions for python
Home-page: UNKNOWN
Author: WinKaR
Author-email: winkar@163.com
License: BSD
Description: Utils for python
        ================
        
        Concurrent
        ~~~~~~~~~~
        
        Utils for coding concurrently
        
        .. code:: python
        
        
            from utils.concurrent import multiThread
        
            @multiThread(10)  # the param indicate how many threads to start
            def ox(x):
                return x
        
            ox(range(10))  # this will run concurrently
        
        Log
        ~~~
        
        Utils for log
        
        .. code:: python
        
            from utils.log import stream_handler, formatter, logger
        
            logger.warn("test")   # the logger has been set level to warn
                                  # use formatter as its default output format
                                  # and will only print to stdout
        
        Useful third-party libraries
        ============================
        
        Pwntools
        ~~~~~~~~
        
        A very useful integrated pwn library.
        
        `Pwntools github repo <https://github.com/Gallopsled/pwntools>`__
        
        Can just install through pip.
        
        .. code:: python
        
            from pwn import *
            context(arch = 'i386', os = 'linux')
        
            r = remote('exploitme.example.com', 31337)
            # EXPLOIT CODE GOES HERE
            r.send(asm(shellcraft.sh()))
            r.interactive()
        
        libformatstr
        ~~~~~~~~~~~~
        
        Library specially for format string exploit.
        
        .. code:: python
        
            import sys
            from libformatstr import FormatStr
        
            addr = 0x08049580
            system_addr = 0x080489a3
        
            p = FormatStr()
            p[addr] = system_addr
        
            # buf is 14th argument, 4 bytes are already printed
            sys.stdout.write( p.payload(14, start_len=4) )
        
Platform: UNKNOWN
