Skip to content

Commit 694af81

Browse files
authored
Merge pull request #150 from longld/revert-149-master
Revert "changed "is" to "==""
2 parents 0984243 + 6de0f5f commit 694af81

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ PEDA - Python Exploit Development Assistance for GDB
2929

3030
## Installation
3131

32-
git clone https://github.com/not-duckie/peda.git /opt/peda
33-
echo "source /opt/peda/peda.py" >> ~/.gdbinit
32+
git clone https://github.com/longld/peda.git ~/peda
33+
echo "source ~/peda/peda.py" >> ~/.gdbinit
3434
echo "DONE! debug your program with gdb and enjoy"
35-
Note:
36-
This is exaclty the clone of peda repositry by ![longld](https://github.com/longld/peda) but this one doesnt throw warning to
37-
use == instead of is when using with python3.
38-
I changed it as it was anonying and peda is a great project by ![longld](https://github.com/longld/peda) and above those warnings.
3935

4036
## Screenshot
4137
![start](http://i.imgur.com/P1BF5mp.png)

peda.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import config
4343
from nasm import *
4444

45-
if sys.version_info.major == 3:
45+
if sys.version_info.major is 3:
4646
from urllib.request import urlopen
4747
from urllib.parse import urlencode
4848
pyversion = 3
@@ -5789,9 +5789,9 @@ def list_shellcode():
57895789
while True:
57905790
for os in oslist:
57915791
msg('%s %s'%(yellow('[+]'),green(os)))
5792-
if pyversion == 2:
5792+
if pyversion is 2:
57935793
os = input('%s'%blue('os:'))
5794-
if pyversion == 3:
5794+
if pyversion is 3:
57955795
os = input('%s'%blue('os:'))
57965796
if os in oslist: #check if os exist
57975797
break
@@ -5800,9 +5800,9 @@ def list_shellcode():
58005800
while True:
58015801
for job in joblist:
58025802
msg('%s %s'%(yellow('[+]'),green(job)))
5803-
if pyversion == 2:
5803+
if pyversion is 2:
58045804
job = raw_input('%s'%blue('job:'))
5805-
if pyversion == 3:
5805+
if pyversion is 3:
58065806
job = input('%s'%blue('job:'))
58075807
if job != '':
58085808
break
@@ -5811,9 +5811,9 @@ def list_shellcode():
58115811
while True:
58125812
for encode in encodelist:
58135813
msg('%s %s'%(yellow('[+]'),green(encode)))
5814-
if pyversion == 2:
5814+
if pyversion is 2:
58155815
encode = raw_input('%s'%blue('encode:'))
5816-
if pyversion == 3:
5816+
if pyversion is 3:
58175817
encode = input('%s'%blue('encode:'))
58185818
if encode != '':
58195819
break

0 commit comments

Comments
 (0)