Giter Site home page Giter Site logo

Comments (6)

suljov avatar suljov commented on June 8, 2024

did it get fixed or you found an fix? i have this too

from crackmapexec.

suljov avatar suljov commented on June 8, 2024

i maybe found a loop hole or a reason. test using another wordlist. rockyou is "UTF-8 text" but other wordlists are "ASCII text" and those will work.

but this dont fix the fact it cant read files that are "UTF-8 text", some people want/have to use the rockyou wordlist and cant do it right now

from crackmapexec.

sec13b avatar sec13b commented on June 8, 2024

i didn't fix

from crackmapexec.

0mMadnani avatar 0mMadnani commented on June 8, 2024

Can be fixed by simply opening the rockyou.txt in a text editor like leafpad and in save as option use the UTF-8 encoding while saving this will solve the issue

from crackmapexec.

suljov avatar suljov commented on June 8, 2024

Can be fixed by simply opening the rockyou.txt in a text editor like leafpad and in save as option use the UTF-8 encoding while saving this will solve the issue

error say

"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 933: invalid continuation byte "

and checking rockyou.txt we get

$ file /usr/share/wordlists/rockyou.txt
/usr/share/wordlists/rockyou.txt: Unicode text, UTF-8 text

from crackmapexec.

sec13b avatar sec13b commented on June 8, 2024

Some of the wordlists I have downloaded from the inter-webs have had malformed utf-8 contents. You can run this Linux command to clean up the UTF-8 by removing any non UTF-8 characters:

sudo iconv -f utf-8 -t utf-8 -c rockyou.txt

or

sudo iconv -f utf-8 -t utf-8 -c rockyou.txt > rockyou_utf_8.txt  (keep original rockyou.txt)

It's also wise to clean up any leading white-space since I don't know how john the ripper or other cracking applications will deal with it.

sed "s/^[ \t]*//" -i rockyou.txt
sed "s/^[ \t]*//" -i rockyou_utf_8..txt
┌──(kali㉿kali)-[~/CrackMapExec]
└─$ poetry run crackmapexec rdp 192.168.1.14 -u you -p /usr/share/wordlists/rockyou_utf_8.txt --no-brutepass

from crackmapexec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.