Jump to content

Use Key Croc as wifi-hotspot?


Recommended Posts

Hello, recently ordered a Key Croc, stil waiting for it to arrive here and looking forward to test it :smile: however i was a little bit too quick, just saw the word "wifi" and made a rapid conclusion and ordered in like 2 seconds, not until after i saw that it meant "able to connect to an existing wifi-network" more than "become a hotspot" so my question is if it somehow is possible in any way to make a hotspot out of this device, preferably with a hidden ssid, or if the only shot at this would be to bring a mobile hotspot to connect this device too in that case? I still see plenty of usage with the device no matter what, so it's not a waste of money at all :lol: just that it would be a really nice bonus if you where able to connect to the device itself from a browser e.g without the need for an active internetconnection for the ssh/cloudthing and all the steps that might be required for that.



Link to comment
Share on other sites

1 hour ago, chrizree said:

I would suggest to use the product as intended. Connecting it to a mobile hotspot can be a good idea. Also using a Cloud C2 instance to interact with the Croc via a web interface and of course ssh as well, either locally or in C2.

Yeah i know that you can do a mobile hotspot and make it work taht way, that's probably how i will solve it. I was just curious if it was possible to make it the other way around so to speak, have been using similar products before with this very feature for easy accessing the device itself from it's hotspot (when no internet-connection is possible/needed), i defenetley sees benefits in both ways depending on what you are focusing on or what your clients are asking for. Thank you for your answer!

Link to comment
Share on other sites

You could access the Croc using ssh without an internet connection available as long as you have a device that offers a LAN (including an AP to connect the Croc to). For example a Raspberry Pi with hostapd/dnsmasq. Small home routers like the GL.Inet "Mango" (or such) would of course work and are "mobile"/portable. Or a Pineapple if limiting the scope to Hak5 devices. The Croc runs Debian so at least in theory it could be possible to set up an AP, but I wouldn't put too much time into it to try to get it running. It's easier to just set up something that the Croc connects to instead using already existing functionality.

  • Upvote 1
Link to comment
Share on other sites

  • 5 weeks later...

For those of you interested, I have attached a modified croc_framework that allows you to enable and configure an AP on your Croc from the usual config.txt. It supports wpa2 password / no password, has an option for hiding SSID (e.g. prevent broadcasting) and set the gateway address. Example config is included.

  • Install hostapd - do not configure it any further (croc needs to be online obviously):
apt install hostapd
  • Replace /usr/local/croc/bin/croc_framework (check encoding and EOL before replacing, check file permissions afterwards)
  • Build your config.txt (see example config attached)
  • Secure-eject and re-plug the Croc

Changes in code are marked with comment lines. No other modifications than those needed for the AP in this file.

LED will blink yellow during AP setup on boot, will blink red if it failed due to missing hostapd package and will blink green when the setup seems to be successful.

NOTE: You will have to set a static IP on the devices you want to connect to the AP, since DHCP is not supported with this mod as of now.

Note that interface combinations are not supported by the chip, so you won't see hosting an AP and connecting to one at the same time

USE AT YOUR OWN RISK. If this breaks your device and you point at me, I will laugh at you.

croc_framework example_config.txt

Edited by lartsch
added usage notes
Link to comment
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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...