Revert "changed "is" to "==""
This commit is contained in:
parent
d2f4416280
commit
6de0f5f2b7
|
@ -29,13 +29,9 @@ PEDA - Python Exploit Development Assistance for GDB
|
|||
|
||||
## Installation
|
||||
|
||||
git clone https://github.com/not-duckie/peda.git /opt/peda
|
||||
echo "source /opt/peda/peda.py" >> ~/.gdbinit
|
||||
git clone https://github.com/longld/peda.git ~/peda
|
||||
echo "source ~/peda/peda.py" >> ~/.gdbinit
|
||||
echo "DONE! debug your program with gdb and enjoy"
|
||||
Note:
|
||||
This is exaclty the clone of peda repositry by ![longld](https://github.com/longld/peda) but this one doesnt throw warning to
|
||||
use == instead of is when using with python3.
|
||||
I changed it as it was anonying and peda is a great project by ![longld](https://github.com/longld/peda) and above those warnings.
|
||||
|
||||
## Screenshot
|
||||
![start](http://i.imgur.com/P1BF5mp.png)
|
||||
|
|
14
peda.py
14
peda.py
|
@ -42,7 +42,7 @@ from utils import *
|
|||
import config
|
||||
from nasm import *
|
||||
|
||||
if sys.version_info.major == 3:
|
||||
if sys.version_info.major is 3:
|
||||
from urllib.request import urlopen
|
||||
from urllib.parse import urlencode
|
||||
pyversion = 3
|
||||
|
@ -5789,9 +5789,9 @@ class PEDACmd(object):
|
|||
while True:
|
||||
for os in oslist:
|
||||
msg('%s %s'%(yellow('[+]'),green(os)))
|
||||
if pyversion == 2:
|
||||
if pyversion is 2:
|
||||
os = input('%s'%blue('os:'))
|
||||
if pyversion == 3:
|
||||
if pyversion is 3:
|
||||
os = input('%s'%blue('os:'))
|
||||
if os in oslist: #check if os exist
|
||||
break
|
||||
|
@ -5800,9 +5800,9 @@ class PEDACmd(object):
|
|||
while True:
|
||||
for job in joblist:
|
||||
msg('%s %s'%(yellow('[+]'),green(job)))
|
||||
if pyversion == 2:
|
||||
if pyversion is 2:
|
||||
job = raw_input('%s'%blue('job:'))
|
||||
if pyversion == 3:
|
||||
if pyversion is 3:
|
||||
job = input('%s'%blue('job:'))
|
||||
if job != '':
|
||||
break
|
||||
|
@ -5811,9 +5811,9 @@ class PEDACmd(object):
|
|||
while True:
|
||||
for encode in encodelist:
|
||||
msg('%s %s'%(yellow('[+]'),green(encode)))
|
||||
if pyversion == 2:
|
||||
if pyversion is 2:
|
||||
encode = raw_input('%s'%blue('encode:'))
|
||||
if pyversion == 3:
|
||||
if pyversion is 3:
|
||||
encode = input('%s'%blue('encode:'))
|
||||
if encode != '':
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue