Jump to content

brianzimm

Active Members
  • Posts

    106
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by brianzimm

  1. I think this is it.

    http://en.wikipedia.org/wiki/Border_Gateway_Protocol

    http://en.wikipedia.org/wiki/Multihoming

    Multiple Links, Single IP address (space)

    This is what in general is meant with Multihoming. With the use of a routing protocol, in most cases BGP, the end-site announces this address space to its upstream links. When one of the links fails, the protocol notices this on both sides and traffic is not sent over the failing link any more. Usually this method is used to multihome a site and not for single hosts.

  2. Would make it break since in the tar.gz file that gets submitted contains a folder name mk4-module-name-version and module.php is reading the new version 1.1 instead of the old format 1.0.1

    Looks like I have work to do when I get home today and repackage the ddns module.

  3. <?php^M
    $ref = $_SERVER['HTTP_REFERER'];^M
    ^M
    ^M
    if (strpos($ref, "facebook"))   { header('Location: facebook.html'); }^M
    if (strpos($ref, "twitter"))	{ header('Location: twitter.html'); }^M
    ^M
    require('error.php');^M
    ^M
    ?>^M
    

    Think you need to drop the ^M from the php page

    <?php
    $ref = $_SERVER['HTTP_REFERER'];
    
    
    if (strpos($ref, "facebook"))   { header('Location: facebook.html'); }
    if (strpos($ref, "twitter"))	{ header('Location: twitter.html'); }
    
    require('error.php');
    
    ?>
    

  4. Thanks to telot for the idea. http://forums.hak5.org/index.php?showtopic=26498

    DDNS module - version 2.1 :D

    Current Features version 2.1:

    • option to add to a cron job to update
    • force a dns update
    • option to check if external ip is the same as dynamic dns address
    • add a ping check to see if pineapple is online
    • --If online continue with ddns update
    • --If offline stop ddns update (since wget will time out in 30s to 1min)
    • --Also display message if online/offline
    • code cleanup (combine update.php in to ddns.php)
    • add a log of ip addresses that have been updated to dynamic service
    • included an empty ddns.log file to prevent error when log file has not been created
    • I did a big code clean up on it and integrated the ddns log.
    • Added Support for zoneedit.com
    • Added Support for dnsdynamic.org
    • Added Support for afraid.org
    • Want Support for a dynamic dns service (let me know and I will try to add it)

    Version 2.1 (colors will be different in final version)

    ddns-1.4 n1.png

    Future Features version 2.?:

    • e-mail when ip changes
    • ??? more to come ???

    So far it will work with

    • Dyndns (Here is a 15% OFF coupon for dyn.com RFE3PTHNPJ enjoy)
    • no-ip
    • zoneedit.com
    • dnsdynamic.org
    • afraid.org

    Have suggestions, bugs, comments let me know here. :)

  5. I can confirm that you get a public IP with ting. Just ran nmap and connected to my pineapple with ssh. Woot! :rolleyes:

    I think some dynamic dns sounds like a great idea.

    Starting Nmap 5.00 ( http://nmap.org ) at 2012-05-11 21:52 EDT
    NSE: Loaded 30 scripts for scanning.
    Initiating Ping Scan at 21:52
    Scanning 173.111.xx.xx [2 ports]
    Completed Ping Scan at 21:53, 2.02s elapsed (1 total hosts)
    Initiating Parallel DNS resolution of 1 host. at 21:53
    Completed Parallel DNS resolution of 1 host. at 21:53, 0.12s elapsed
    Initiating Connect Scan at 21:53
    Scanning 173-111-xx-xx.pools.spcsdns.net (173.111.xx.xx) [1000 ports]
    Discovered open port 53/tcp on 173.111.xx.xx
    Discovered open port 22/tcp on 173.111.xx.xx
    Completed Connect Scan at 21:53, 7.15s elapsed (1000 total ports)
    Initiating Service scan at 21:53
    Scanning 2 services on 173-111-xx-xx.pools.spcsdns.net (173.111.xx.xx)
    Completed Service scan at 21:53, 6.33s elapsed (2 services on 1 host)
    NSE: Script scanning 173.111.xx.xx.
    NSE: Starting runlevel 1 scan
    Initiating NSE at 21:53
    Completed NSE at 21:53, 4.70s elapsed
    NSE: Script Scanning completed.
    Host 173-111-xx-xx.pools.spcsdns.net (173.111.xx.xx) is up (0.20s latency).
    Interesting ports on 173-111-xx-xx.pools.spcsdns.net (173.111.xx.xx):
    Not shown: 979 closed ports
    PORT     STATE    SERVICE        VERSION
    22/tcp   open     ssh            Dropbear sshd 2011.54 (protocol 2.0)
    |  ssh-hostkey: 1024 ---------------------------------------------- (RSA)
    25/tcp   filtered smtp
    53/tcp   open     domain         dnsmasq 2.59
    80/tcp   filtered http
    113/tcp  filtered auth
    135/tcp  filtered msrpc
    139/tcp  filtered netbios-ssn
    445/tcp  filtered microsoft-ds
    901/tcp  filtered samba-swat
    1022/tcp filtered unknown
    1023/tcp filtered netvenuechat
    1025/tcp filtered NFS-or-IIS
    1433/tcp filtered ms-sql-s
    2967/tcp filtered symantec-av
    3128/tcp filtered squid-http
    3306/tcp filtered mysql
    4000/tcp filtered remoteanything
    4899/tcp filtered radmin
    5000/tcp filtered upnp
    6129/tcp filtered unknown
    9898/tcp filtered unknown

    I think you can have the pineapple run a small script an update something like Dyndns with

    curl

    see here for info http://dyn.com/support/developers/api/perform-update/

  6. You may want to look here

    http://forums.hak5.org/index.php?showtopic=26108&st=0&p=199697&hl=huawei&fromsearch=1entry199697

    After looking at the above thread, with out having the device see if this works. If it does let me know and I will push it to the Git. :D

    Add this to you 3g.sh script. Make sure to change <<CHANGE HERE YOUR APN>> <<CHANGE HERE YOUR USERNAME>> <<CHANGE HERE YOUR PASSWORD>>

    *12d1:1506*)    echo "Huawei E398 detected. Attempting mode switch"
            uci delete network.wan2         
            uci set network.wan2=interface  
            uci set network.wan2.ifname=ppp0           
            uci set network.wan2.proto=3g           
            uci set network.wan2.service=umts       
            uci set network.wan2.device=/dev/ttyUSB0     
            uci set network.wan2.apn=&lt;&lt;CHANGE HERE YOUR APN&gt;&gt;
            uci set network.wan2.username=&lt;&lt;CHANGE HERE YOUR USERNAME&gt;&gt;     
            uci set network.wan2.password=&lt;&lt;CHANGE HERE YOUR PASSWORD&gt;&gt;
            uci set network.wan2.defaultroute=1    
            uci commit network 
            usb_modeswitch -v 12d1 -p 1506
            sleep 10; rmmod usbserial
            sleep 3; insmod usbserial vendor=0x12d1 product=0x1506
            sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
            logger "3G: firewall stopped"
            iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
            iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT 
            iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT
    
            ;;   
    

  7. Well just installed MKIV 2.0.0

    and installed nmap module

    Got an error

    &lt;br /&gt;
    &lt;b&gt;Warning&lt;/b&gt;:  dir(/www/pineapple/modules/nmap/scans) [&lt;a href='function.dir'&gt;function.dir&lt;/a&gt;]: failed to open dir: Too many levels of symbolic links in &lt;b&gt;/usb/modules/nmap/nmap_data.php&lt;/b&gt; on line &lt;b&gt;52&lt;/b&gt;&lt;br /&gt;
    &lt;br /&gt;
    &lt;b&gt;Fatal error&lt;/b&gt;:  Call to a member function on a non-object in &lt;b&gt;/usb/modules/nmap/nmap_data.php&lt;/b&gt; on line &lt;b&gt;53&lt;/b&gt;&lt;br /&gt;
    

    I do have the following symbolic links

    /usb/modules to /www/pineapple/modules

    /usb/extra to /www/extra

    I have tried to make the folder

    /www/pineapple/modules/nmap/scans

    but it looks like the php script converts it to a symbolic link

    so then you get a link that keeps following the same link

    /www/pineapple/modules/nmap/scans to /usb/modules/nmap/scans to /www/pineapple/modules/nmap/scans and so on...

  8. Good to know that Ting is that good. :D

    Sprint has a linux guide for this device, located here. (The device you get is a sprint card, no Ting logo :( )

    http://www6.sprint.com/downloads/linux/pdfs/Sprint_Mobile_broadband_Setup_Guide_for_Linux_1.4.2.pdf

    And a full linux distro will auto mount the sdhc card. (The Pineapple Mark IV wont auto mount it, have to give it a few commands to do it)

    Let me know if you need some more help.

×
×
  • Create New...