Skip to content

Instantly share code, notes, and snippets.

View ibrohimislam's full-sized avatar
♥️
Focusing

Ibrohim Kholilul Islam ibrohimislam

♥️
Focusing
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ibrohimislam on github.
  • I am ibrohimislam (https://keybase.io/ibrohimislam) on keybase.
  • I have a public key ASDbwnawLfi_0HmH2ltYTqhWWcEaoC8rhjnD8yvpXeqNdgo

To claim this, I am signing this object:

@ibrohimislam
ibrohimislam / script.py
Created May 3, 2023 11:07
Script untuk update APN dan auto-connect LTE di PL100
View script.py
import requests
import re
import subprocess
import time
def login(session):
stok_response = session.get("http://169.254.0.1/cgi-bin/login.cgi?Command=getLoginStok", headers = {'Referer': 'http://169.254.0.1/'})
stok = re.findall(r"<login_stok>(.*?)</login_stok>", stok_response.text, flags=0)[0]
login_data = {'Command': 'setLOGINvalue', 'input_URN': 'admin', 'rand_PWD': 'admin'}