Skip to content

Commit

Permalink
sixize
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Jun 14, 2016
1 parent 42ab6eb commit 373272a
Show file tree
Hide file tree
Showing 108 changed files with 136 additions and 2 deletions.
1 change: 1 addition & 0 deletions gdbinit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import sys
from os import path
Expand Down
1 change: 1 addition & 0 deletions pwndbg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import sys

Expand Down
1 change: 1 addition & 0 deletions pwndbg/abi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import pwndbg.arch

Expand Down
1 change: 1 addition & 0 deletions pwndbg/android.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.color
Expand Down
1 change: 1 addition & 0 deletions pwndbg/arch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import collections
import struct
Expand Down
1 change: 1 addition & 0 deletions pwndbg/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
may be passed in a combination of registers and stack values.
"""
from __future__ import print_function
from __future__ import unicode_literals

from capstone import CS_GRP_CALL
from capstone import CS_GRP_INT
Expand Down
1 change: 1 addition & 0 deletions pwndbg/argv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.arch
Expand Down
1 change: 1 addition & 0 deletions pwndbg/auxv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import os
import re
Expand Down
1 change: 1 addition & 0 deletions pwndbg/chain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.color
Expand Down
1 change: 1 addition & 0 deletions pwndbg/color.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import functools

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import functools
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/argv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.arch
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/aslr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import argparse

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/asm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import subprocess

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/auxv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.auxv
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/commands/checksec.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import os
import subprocess

Expand Down
2 changes: 2 additions & 0 deletions pwndbg/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"""
Dumps all pwndbg-specific configuration points.
"""
from __future__ import unicode_literals

import pwndbg.commands
import pwndbg.config

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/context.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import sys

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/cpsr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.arch
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/defcon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.commands
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/dt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.color
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/dumpargs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import pwndbg.arguments
import pwndbg.commands
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/commands/elf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from elftools.elf.elffile import ELFFile

import gdb
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/gdbinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
https://github.com/gdbinit/Gdbinit/blob/master/gdbinit
"""
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.commands
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/heap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.commands
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/hexdump.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import argparse

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/ida.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import bz2
import datetime
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import errno as _errno
import struct
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/nearpc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import collections

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/next.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Stepping until an event occurs
"""
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.commands
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/peda.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals

import sys

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/procinfo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import os
import string
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/reload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import imp
import os
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/rop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import re
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import codecs
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/segments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.commands
Expand Down
3 changes: 2 additions & 1 deletion pwndbg/commands/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Wrapper for shell commands.
"""
from __future__ import print_function
from __future__ import unicode_literals

import os

Expand Down Expand Up @@ -69,7 +70,7 @@ def handler(*a):
if os.fork() == 0:
os.execvp(cmd, (cmd,) + a)
os.wait()
handler.__name__ = cmd
handler.__name__ = str(cmd)
pwndbg.commands.Command(handler, False)

for cmd in shellcmds:
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
entry point.
"""
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.commands
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/telescope.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Generally used to print out the stack or register values.
"""
from __future__ import print_function
from __future__ import unicode_literals

import collections

Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/vmmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Command to print the vitual memory map a la /proc/self/maps.
"""
from __future__ import print_function
from __future__ import unicode_literals

import gdb
import pwndbg.color
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/windbg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Compatibility functionality for Windbg users.
"""
from __future__ import print_function
from __future__ import unicode_literals

import codecs
import math
Expand Down
1 change: 1 addition & 0 deletions pwndbg/commands/xor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import pwndbg.commands
import pwndbg.memory
Expand Down
1 change: 1 addition & 0 deletions pwndbg/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
inconsistencies which arise from this.
"""
from __future__ import print_function
from __future__ import unicode_literals

import sys

Expand Down
1 change: 1 addition & 0 deletions pwndbg/constants/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import print_function
from __future__ import unicode_literals

import pwndbg.arch

Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/aarch64.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_io_setup = Constant('__NR_io_setup',0)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/alpha.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_osf_syscall = Constant('__NR_osf_syscall',0)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/amd64.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_read = Constant('__NR_read',0)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/arm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_OABI_SYSCALL_BASE = Constant('__NR_OABI_SYSCALL_BASE',0x900000)
Expand Down
3 changes: 3 additions & 0 deletions pwndbg/constants/constant.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import unicode_literals


class Constant(int):
def __new__(cls, s, i):
obj = super(Constant, cls).__new__(cls, i)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/i386.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_exit = Constant('__NR_exit',1)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/ia64.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_ni_syscall = Constant('__NR_ni_syscall',1024)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/mips.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_Linux = Constant('__NR_Linux',4000)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/powerpc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_exit = Constant('__NR_exit',1)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/powerpc64.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_exit = Constant('__NR_exit',1)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/s390.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_exit = Constant('__NR_exit',1)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/s390x.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_exit = Constant('__NR_exit',1)
Expand Down
2 changes: 2 additions & 0 deletions pwndbg/constants/sparc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from .constant import Constant

__NR_exit = Constant('__NR_exit',1)
Expand Down
Loading

0 comments on commit 373272a

Please sign in to comment.