Skip to content

Instantly share code, notes, and snippets.

@joubin
Last active July 13, 2020 17:37
Show Gist options
  • Select an option

  • Save joubin/a3851bdf63595cd2c8f5 to your computer and use it in GitHub Desktop.

Select an option

Save joubin/a3851bdf63595cd2c8f5 to your computer and use it in GitHub Desktop.

Revisions

  1. joubin revised this gist Feb 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bypassSafeConnect.py
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    #
    # 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 perposes only.
    # For educational purposes only.
    # Joubin Jabbari

    import sys
  2. joubin created this gist May 13, 2014.
    23 changes: 23 additions & 0 deletions bypassSafeConnect.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    #!/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 perposes 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]+'')