403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/photo.py
from playwright.sync_api import sync_playwright
TOK="b12a0ddd1501375dfbda804d"; url="https://seaside.pacim.de/checkin.php?t=%s&b=115156"%TOK
with sync_playwright() as p:
    b=p.chromium.launch(); pg=b.new_context(viewport={"width":440,"height":900},device_scale_factor=2).new_page()
    errs=[]; pg.on("console", lambda m: errs.append(m.text) if m.type=="error" else None)
    pg.goto(url, wait_until="networkidle"); pg.wait_for_timeout(900)
    print("photo section present:", pg.is_visible('#ci-photos'))
    print("initial gallery count:", pg.inner_text('#ci-ph-count'))
    print("thumbs:", pg.eval_on_selector_all('#ci-ph-grid .ph-thumb','e=>e.length'))
    # upload flow
    pg.click('#ci-ph-add'); pg.wait_for_timeout(400)
    print("upload modal open:", pg.is_visible('#ci-up-modal'))
    pg.set_input_files('#ci-up-gal','/tmp/testimg.jpg'); pg.wait_for_timeout(500)
    print("tiles:", pg.eval_on_selector_all('#ci-up-tiles .ph-tile','e=>e.length'), "| go enabled:", not pg.eval_on_selector('#ci-up-go','e=>e.disabled'))
    # add a note to the tile
    try: pg.fill('#ci-up-tiles .ph-tnote','Kratzer hinten rechts')
    except Exception as e: print('note fill:',e)
    pg.click('#ci-up-go'); pg.wait_for_timeout(3500)
    print("after upload modal open:", pg.is_visible('#ci-up-modal'))
    print("gallery count after upload:", pg.inner_text('#ci-ph-count'), "thumbs:", pg.eval_on_selector_all('#ci-ph-grid .ph-thumb','e=>e.length'))
    # open lightbox
    pg.eval_on_selector('#ci-ph-grid .ph-thumb','e=>e.click()'); pg.wait_for_timeout(700)
    print("lightbox open:", pg.is_visible('#ci-lb'), "| pos:", pg.inner_text('#ci-lb-pos'))
    pg.screenshot(path="/tmp/lightbox.png")
    print("console errors:", errs[:5])
    b.close()

Youez - 2016 - github.com/yon3zu
LinuXploit