Jump to content

Teabot 5000

Active Members
  • Posts

    51
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Teabot 5000

  1. I heard about this too. I was reading an article a couple of months back about Lenovo selling "Windows Signature" PCs that wouldn't allow you to install any other OS. OP, it should say on the box if what you got is a "Windows Signature" device. Hopefully it's not the case and what Malfuction suggested works :)
  2. So you should be able to save your script as say "openWifiCap.sh" in the /opt directory ("/opt/openWifiCap.sh" is now the full path to the script) and then have it executed at boot by placing a call to the script in the "/etc/rc.local" file. First off, once you've saved the script make sure to run the command "sudo chmod +xw openWifiCap.sh" to make it executable (the +x) and give it write permissions (the w). At this stage you should be able to run "./openWifiCap.sh" and it should work as expected. Next, add in a call to the script in the in the "/etc/rc.local" file. By default, this file should look something like this: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 You'll want to add the call to the script above the line with "exit 0". With it done, it would look like this: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. sh /opt/openWifiCap.sh & exit 0 The "sh" at the start will call the script and the "&" at the end of the line will get the script to run in the background. If you still have issues with that method you could try the other. Take a look at the answers here for a decent run through of how to do that.
  3. Maybe the adapter isn't getting enough power from the micro USB port? I've had issues before using WiFi adapters with Raspberry Pis and it always turned out t be a power issue. You might have a similar problem with the phone.
  4. PHP is my "go to" language for backend stuff. I've worked with Java before but PHP is just more straight-forward to use. It has everything you need to secure it, just sanitize anything coming from the users, use prepared statements for SQL queries, and keep everything nice and simple. Complexity is the enemy of security.
  5. I forgot to change the line, should look like this with the ".csv" gone from the filename: network=$(grep -a 'OPN' $recon* | sort -nrk11 | tail -1 | awk '{print $19}')
  6. Maybe try adding in a condition after grep is run on the file, just in case the file doesn't exist. if [[ ! $channel ]]; then echo "Problem reading file $recon" exit 0 fi Does the file exist in the directory you called the script from? Also, try removing the "*" wild card symbol from the file name, or remove the ".csv" from the file name and have the line like so: network=$(grep -a 'OPN' $recon*.csv | sort -nrk11 | tail -1 | awk '{print $19}') I think I had problems putting a wild card into the middle of a filename before, so that could be the reason it can't grep the file :)
  7. Can you post the error that you get. Or are you saying that line just doesn't work?
  8. There's a few ways to get it running on boot. Imagine I saved the script as "coolScript.sh" in the /path_to_file/ directory. The quick way would be to add a line like the following to the /etc/rc.local file (above the "exit 0" in the rc.local file of course): /path_to_file/coolScript.sh || exit 1; The better way would be to add an init script by adding a new script to the "/etc/init.d/" folder that calls the script. The commands would be like so (Note: must be run as root): echo '#!/bin/sh' > /etc/init.d/runCoolScript echo '/path_to_script/coolScript.sh' >> /etc/init.d/runCoolScript chmod ugo+x /etc/init.d/runCoolScript update-rc.d runCoolScript defaults The top two lines could obviously be done in an editor instead or echoing them.
  9. It's a really fun game, definitely worth the $10. Hotline Miami 2 is great as well.
  10. Check out the annual holiday hack challenge from SANS: https://holidayhackchallenge.com/2016/ Also, Overthewire has a good mix of stuff: http://overthewire.org/wargames/ I found this one ages ago but never got around to playing with it: https://www.microcorruption.com/login
×
×
  • Create New...