Skip to content

Fix Encode error#1

Open
finn79426 wants to merge 3 commits intosda06407:masterfrom
finn79426:master
Open

Fix Encode error#1
finn79426 wants to merge 3 commits intosda06407:masterfrom
finn79426:master

Conversation

@finn79426
Copy link

Tested under: Python 3.7.3 & 3.9.5

>$ iosgrep.py keywords.txt .

---use plaintext to search---

# grep -ril -e 'foobar'  . :
Find
------
---use hex to search---

# grep -ril -e '666f6f626172'  . :
Not Found
------
---use base64 to search---

# grep -ril -e 'Zm9vYmFy'  . :
Not Found
------
---use md5 to search---

# grep -ril -e '3858f62230ac3c915f300c664312c63f'  . :
Not Found
------
---use sha1 to search---

# grep -ril -e '8843d7f92416211de9ebb963ff4ce28125932878'  . :
Not Found
------
---use utf-8 to search---

# grep -ril -e 'foobar'  . :
Find
------
---use binary to search---

# grep -ril -e '1100110\s1101111\s1101111\s1100010\s1100001\s1110010'  . :
Not Found
------
---use unicode to search---
# grep -ril -e 'foobar'  . :
Find
------

TypeError: Unicode-objects must be encoded before hashing
AttributeError: 'str' object has no attribute 'decode'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments