RNDC [RNDC] Modem FastNet Cisco DPC2100 tool

Discussion in 'N3 Source Codes dan Tutorials' started by dono, Oct 24, 2014.

Discuss [RNDC] Modem FastNet Cisco DPC2100 tool in the N3 Source Codes dan Tutorials area at Nyit-Nyit.Net

  1. dono 3 SMP STAFF N3 Tukang Sapu

    Messages:
    2,403
    Likes Received:
    2,574
    Trophy Points:
    141
    Game:
    Dota 2
    Region:
    Australia
    Salah seorang rekan dari group RNDC, Indra Kurniawan iseng bikin ginian karena hari ini sering kumat modem pasnyet, dan males coca-cola (colok cabut - colok lagi) kabel powernya buat reset.

    Script ini dinamakan MoNyet dengan kepanjangan MOdem FastNYET. Code dalam bash code dengan requirements bash, coreutils, curl, grep, perl-libwww-perl. Tested on Firstmedia/FastNet Cisco DPC2100R3 - Hardware v3.0

    Screenshoot:
    monyet.jpg

    Credits: Indra Kurniawan

    Code:
    #!/bin/bash
    #===============================================================================
    #
    # FILE: monyet.sh
    #
    # USAGE: ./monyet.sh cek (signal|status) | /monyet.sh reboot modem
    #
    # DESCRIPTION: Modem fastNyet Cisco DPC2100 tool.
    #
    # OPTIONS: cek (signal|status) | reboot modem
    # REQUIREMENTS: bash, coreutils, curl, grep, perl-libwww-perl
    # BUGS: ---
    # NOTES: Tested on Firstmedia/FastNet Cisco DPC2100R3 - Hardware v3.0
    # AUTHOR: Indra Kurniawan (), https://twitter.com/idKurniawan
    # VERSION: 1.0
    # CREATED: 10/23/2014 09:21:20 PM WIB
    # REVISION: ---
    #===============================================================================
    
    login() {
    echo "[*] Authenticating to Modem."
    curl -s http://192.168.100.1/goform/_aslvl -d 'SAAccessLevel=2&SAPassword=W2402' > /dev/null
    }
    
    yakin() {
    read -r -p "${1:-Yakin nih? [y/N]} " response
    case $response in
    [yY][eE][sS]|[yY])
    true
    ;;
    *)
    false
    ;;
    esac
    }
    
    reboot() {
    echo "[*] Rebooting Modem."
    curl -s http://192.168.100.1/goform/gscan -d 'SADownStartingFrequency=54900000' > /dev/null
    }
    
    signal() {
    DS=$(GET http://192.168.100.1/signal.asp | grep -A3 Status | head -3 | grep ';' | cut -d ';' -f2)
    DCI=$(GET http://192.168.100.1/signal.asp | grep -A3 ID | head -3 | grep ';' | cut -d ';' -f2)
    DF=$(GET http://192.168.100.1/signal.asp | grep -A3 Frequency | grep ';' | head -1 | cut -d ';' -f2)
    DM=$(GET http://192.168.100.1/signal.asp | grep -A3 Modulation | grep ';' | head -1 | cut -d ';' -f2)
    BR=$(GET http://192.168.100.1/signal.asp | grep -A3 Rate | grep ';' | head -1 | cut -d ';' -f2)
    DPL=$(GET http://192.168.100.1/signal.asp | grep -A3 Level | grep ';' | head -1 | cut -d ';' -f2)
    SNR=$(GET http://192.168.100.1/signal.asp | grep -A3 Noise | grep ';' | head -1 | cut -d ';' -f2)
    
    US=$(GET http://192.168.100.1/signal.asp | grep -A3 Status | tail -3 | grep ';' | cut -d ';' -f2)
    UCI=$(GET http://192.168.100.1/signal.asp | grep -A3 ID | tail -3 | grep ';' | cut -d ';' -f2)
    UF=$(GET http://192.168.100.1/signal.asp | grep -A3 Frequency | grep ';' | tail -1 | cut -d ';' -f2)
    UM=$(GET http://192.168.100.1/signal.asp | grep -A3 Modulation | grep ';' | tail -1 | cut -d ';' -f2)
    SR=$(GET http://192.168.100.1/signal.asp | grep -A3 Rate | tail -3 | grep ';' | cut -d ';' -f2)
    UPL=$(GET http://192.168.100.1/signal.asp | grep -A3 Level | grep ';' | tail -1 | cut -d ';' -f2)
    
    echo "===== Downstream Channel =="
    echo "[+] Downstream Status : "$DS
    echo "[+] Channel ID : "$DCI
    echo "[+] Downstream Frequency : "$DF
    echo "[+] Modulation : "$DM
    echo "[+] Bit Rate : "$BR
    echo "[+] Power Level : "$DPL
    echo "[+] Signal to Noise Ratio : "$SNR
    echo "===== Upstream Channel ===="
    echo "[+] Upstream Status : "$US
    echo "[+] Channel ID : "$UCI
    echo "[+] Upstream Frequency : "$UF
    echo "[+] Modulation : "$UM
    echo "[+] Symbol Rate : "$SR
    echo "[+] Power Level : "$UPL
    }
    
    status() {
    CMS=$(GET http://192.168.100.1/status.asp | grep -A2 Status | cut -d ';' -f2 | tail -1 | cut -d '<' -f1)
    IL=$(GET http://192.168.100.1/status.asp | grep -A2 Address | grep [0-9] | head -1 | cut -d ';' -f2 | cut -d '<' -f1)
    CT=$(GET http://192.168.100.1/status.asp | grep -A2 Time | head -3 | cut -d ';' -f2 | tail -1)
    TSLR=$(GET http://192.168.100.1/status.asp | grep -A2 Reset | head -3 | cut -d ';' -f2 | tail -1 | cut -d '<' -f1)
    CF=$(GET http://192.168.100.1/status.asp | grep -A2 File | cut -d ';' -f2 | cut -d '<' -f1 | tail -1)
    CMC=$(GET http://192.168.100.1/status.asp | grep -A2 Cert | tail -1 | cut -d ';' -f2 | cut -d '<' -f1)
    
    CON=$(GET http://192.168.100.1/status.asp | grep -A10 Connect | tail -3 | cut -d '>' -f4 | cut -d '<' -f1 | head -1)
    MAC=$(GET http://192.168.100.1/status.asp | grep -A10 Connect | tail -3 | cut -d '>' -f4 | cut -d '<' -f1 | grep ':')
    IP=$(GET http://192.168.100.1/status.asp | grep -A10 Connect | tail -3 | cut -d '>' -f4 | cut -d '<' -f1 | tail -1)
    
    echo "===== Cable Modem ====="
    echo "[+] Cable Modem Status : "$CMS
    echo "[+] Local IP Address : "$IL
    echo "[+] Current Time : "$CT
    echo "[+] Time Since Last Reset : "$TSLR
    echo "[+] Configuration File : "$CF
    echo "[+] Cable Modem Certificate : "$CMC
    echo "===== CPE Connections ====="
    echo "[+] Connected to : "$CON
    echo "[+] MAC Address : "$MAC
    echo "[+] Public IP Address : "$IP
    }
    
    case "$1" in
    cek)
    if [ "$2" = "signal" ]; then
    login; signal;
    elif [ "$2" = "status" ]; then
    login; status;
    else
    echo "[?] Karep mu opo cuk ?!?! Silit ah..."
    echo "[!] Cara pake : $0 {cek signal|status} | {reboot modem}"
    fi;
    exit 1;
    ;;
    reboot)
    if [ "$2" = "modem" ]; then
    login; yakin && reboot;
    else
    echo "[?] Karep mu opo cuk ?!?! Silit ah..."
    echo "[!] Cara pake : $0 {cek signal|status} | {reboot modem}"
    fi;
    exit 1;
    ;;
    *)
    echo "[!] Cara pake : $0 {cek signal|status} | {reboot modem}"
    exit 1;
    ;;
    esac
    exit 0;
    
    Save code diatas dengan mana monyet.sh lalu jalankan

    Facebook group: https://www.facebook.com/groups/rndc.or.id/
    Author: https://www.facebook.com/ikurniawan
     

    Attached Files:

    agualloc, k4bayan and adjigile like this.

    Gunakan jasa Rekber N3 untuk menjamin jual beli anda atau menghindari penipuan dengan meng klik disini
  2. QayyimMCR Belum Sekolah Level 0

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    26
    apa ini fungsi gan ,, di modem merk lain?
     
  3. haris182 Belum Sekolah Level 0

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Game:
    GTA
    Region:
    DKI Jakarta
    Cara pake : monyet.sh {cek signal|status} | {reboot modem}
    1|[email protected]:/system # sh monyet.sh cek signal
    [*] Authenticating to Modem.
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    monyet.sh[125]: GET: not found
    ===== Downstream Channel ==
    [+] Downstream Status :
    [+] Channel ID :
    [+] Downstream Frequency :
    [+] Modulation :
    [+] Bit Rate :
    [+] Power Level :
    [+] Signal to Noise Ratio :
    ===== Upstream Channel ====
    [+] Upstream Status :
    [+] Channel ID :
    [+] Upstream Frequency :
    [+] Modulation :
    [+] Symbol Rate :
    [+] Power Level :
    1|[email protected]:/system #

    Cobain di android malah kyk gini y om
     
  4. agualloc Pra TK Level 1

    Messages:
    25
    Likes Received:
    7
    Trophy Points:
    28
    lihat dari REQUIREMENTS: bash, coreutils, curl, grep, perl-libwww-perl , sih kayaknya gak bisa di pake di mobile.
     
  5. AnshoTen Belum Sekolah Level 0

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    om dono, ane lagi nyari nyari cara buat rubah setting upstream dan downstream rate modem dpc2100r3 nie, soalnya tuh modem pake file lan boot dari server firstmedia dan di lock kalo udah upload di modem :confused:.

    Seandainya bisa di ganti upstream dan downstream ratenya pasti wow (konsekuensi dibanned si FM :D), sampe skrg masih berkutak kutik di docsdiagnya dan belom menemukan pencerahan :), semoga disini ada yg bisa ngasih pencerahan :D:D
     

Share This Page