Skip to content

Instantly share code, notes, and snippets.

@joubin
Last active July 13, 2020 17:37
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joubin/a3851bdf63595cd2c8f5 to your computer and use it in GitHub Desktop.
Save joubin/a3851bdf63595cd2c8f5 to your computer and use it in GitHub Desktop.
This is a small script to bypass SafeConnect. SaveConnect is a small tool some universities use to manage you system. It installs their third party tool to monitor your usage and to check to see if you are running a virus scanner. The system is pretty flawed both in code and implementation. You can bypass it all together by running this.
#!/usr/bin/python
#
# Version 1.0
# This script will pass a linux HTML header causing safe connect to ignor the host mac address as safeconnect is not developed for *nix machines
# For educational purposes only.
# Joubin Jabbari
import sys
import urllib2
import random
#Reads OS type and picks random one.
array = ["64","ABC","Asturix","Aurora","BackBox","BackTrack","Baltix","Bharat","BlankOn","Bodhi","Buildix","Caixa","Canaima","Corel","CrunchBang","Distribution","Dreamlinux","EasyPeasy","Edubuntu","Element","Elive","Finnix","Fluxbuntu","Freespire","Gibraltar","Gobuntu","Goobuntu","Guadalinex","HP","Hiweed","Impi","Instant","Joli","Kanotix","Karoshi","Knoppix","Kubuntu","Kuki","Kurumin","LEAF","LOUD","Leeenux","LiMux","Linspire","Linux","LinuxMCE","LinuxTLE","LliureX","Lubuntu","MAX","MEPIS","Maemo","MintPPC","Molinux","Moon","Mythbuntu","Neopwn","NepaLinux","Netrunner","Nova","OpenGEU","OpenZaurus","PC/OS","PSUbuntu","Parsix","Peppermint","Pinguy","Poseidon","Progeny","PureOS","Qimo","Rxart","Sabily","Sacix","Skolelinux","SolusOS","Spri","Sunwah","Super","Symphony","TAILS","Trisquel","TurnKey","UberStudent","Ubuntu","Ulteo","Univention","UserLinux","Vinux","Vyatta","Webconverger","XBMC","Xandros","Xubuntu","Ylmf","Zentyal","ZevenOS","Zorin","[edit]","aptosid","dyne:bolic","gNewSense","gOS","gnuLinEx","grml","nUbuntu","puredyne"]
mySystem = random.choice(array)
#opens URL
opener = urllib2.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0 (x11; U; '+mySystem+'; en-US; rv:1.9.1.16) Gecko/20101130 Firefox/3.5.16')]
opener.open('http://'+sys.argv[1]+'')
@joubin
Copy link
Author

joubin commented May 13, 2014

I recommend running this inside of a cron for every 5 minutes. This is if you do not want to modify your browsers agent.

@MrWhitee4
Copy link

How do I run it and does it run the whole time when I startet it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment