Jump to content

Can't connect CROC to WIFI


Recommended Posts

Alright guys. HELLO!! ūüôā

Before i begin, i just want to note that i am a novice when it comes to Linux, bash, and all other things required to use this. But i bought this to make my job a little easier and know that you guys can help me get it working! 

I would also like to say that i did read all other posts containing KEYCROC and WIFI on the forums and none of the solutions seemed to work for me.

So I will discuss what i have tried and appreciate any input or advice. Thanks!

I read (pretty sure all of) the documentation i could find on hak5 forums.

I watched all videos on the Croc videos 101-104.

I am updated to Version 1.3_510

I know the difference between arming and attack mode.

I can connect to the croc through SSH in arming mode. Works great. But i still cannot connect over WIFI.

I have tested 2 different WIFI connections. Both my personal wifi and my hotspot on my phone. I have even changed both wifi names and passwords to contain no special characters.

When i type  __crocctl-ipinfo it just returns an empty line on all wifi settings tested. 

I have not attempted any type of DNS anything because i didn't know what to try. 

I found this file as seen in another post... /etc/wpa_supplicant.conf and noticed that my ssid and psk both contain a ^M inside the quotations... is this normal? I later found that this ^M means endline but was unsure if it should be inside the quotes.

I also tried to directly type my WIFI name and password in this /etc/wpa_supplicant.conf file and then remove the SSID_WIFI and SSID_PASS from the config.txt file to see if it would only read what is there to get rid of the ^M. 

IM STUCK! lol. please any advice would be appreciated. Thanks again. 


I have not even attempted to setup my C2 stuff yet.




 

Link to post
Share on other sites
5 minutes ago, Jtyle6 said:

I have read both documents. I dont have to do anything with C2 to get it working on wifi right? 

I have also eliminated all special characters to make sure that is not a problem. 

DUCKY_LANG us

WIFI_SSID Witran

WIFI_PASS 4mypassword

SSH ENABLE

neither of those should require any \ because there are no special characters right?

Link to post
Share on other sites

Ok well. No luck so far. *I would like to also note that i have had zero errors and have had no red lights flashing.*
I don't think the 'wifi adapter' is working at all. But maybe i'm wrong. Please, any advice.

After trying nearly all day, I factory reset my Keycroc. I noticed my Version.txt file still said 1.3 after the reset and i thought it didn't work.

However, when i tried to SSH while in arming mode i noticed the password reverted back to the original so it must have reset. (I also noticed the 'device.config' file i added was gone as well)

Then I deleted the Version.txt file and the config.txt file (in case i somehow messed them up)and updated firmware to 1.3.

Both Version.txt and config.txt re-populated after completing the update, as expected (or hoped.. lol).

Configured config.txt with all lowercase, super simple ssid and pass, and nothing. No device shows up on my router configuration, cannot connect to it in ssh. Added the payload crocinfo

CROC FIRMWARE:1.3_510

IP:

DNS:nameserver 1.1.1.1

DNS:

USER:root

PASSWORD:hak5croc

HOSTNAME:croc

SSH:ssh root@

MODE:HID VID_0X1A2C PID_0X2124


So now im trying to verify the wireless adapter is doing anything. 

ifconfig shows 0 bytes, packets.. 0 everything. On every interface.

iwconfig does not work. lshw does not work. 

lsusb shows it has a Realtek Semiconductor which i believe is the adapter but i dont know how to verify it is even broadcasting a signal.

Netstat -i also has Zeros across the board.

Where can i find a log of the network adapter? or further test to see if the wifi interface is working?

Everything works except wifi.  

Link to post
Share on other sites
On 7/12/2020 at 3:54 PM, Lodrix said:

I found this file as seen in another post... /etc/wpa_supplicant.conf and noticed that my ssid and psk both contain a ^M inside the quotations... is this normal? I later found that this ^M means endline but was unsure if it should be inside the quotes.

I also tried to directly type my WIFI name and password in this /etc/wpa_supplicant.conf file and then remove the SSID_WIFI and SSID_PASS from the config.txt file to see if it would only read what is there to get rid of the ^M. 

Please post current /etc/wpa_supplicant.conf! Please post ifconfig output!

Do you stille have the ^M inside the quotations?

 

This is my /etc/wpa_supplicant.conf:

network={
          ssid="Monday"
          psk="10Erhatxyzklmnhoecker!20"
          priority=1
}

Do not configure wifi in config.txt! Make sure to have unix-style file  endings in your conf file! Read here!

How do you create config.txt? With Windows? Try Linux or use Notepad++  with Unix line endings.

 

 

 

Edited by fneagle
  • Like 1
Link to post
Share on other sites

this was my /etc/wpa_supplicant.conf


network={
          ssid="easy^M"
          psk="easyeasy^M"
          priority=1
}

The default text editor on the machine i was using was Wordpad. I originally thought that was the problem and set the default text editor to notepad but apparently the damage had been done. I'm still unsure how after resetting I had the same problem even after I deleted the config file. 

But, after deleting my config.txt file and making a new one in Notepad++ it worked perfectly. Wow. I feel so dumb.

I cant believe it was so simple. Hopefully this doesn't happen to anyone else, but if it does... I Hope this can help you. LOL.

Thank you SO much for the help! and I cant wait to contribute to the Payloads section. ūüôā
 



 

Link to post
Share on other sites

Confucius sad: "Life is really simple, but we insist on making it complicated."

I had the same problem with another project using wpa_supplicant.conf.  See here.

Waiting for your Payloads ...¬†ūüėÄ

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...