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/swipe_all.py
from playwright.sync_api import sync_playwright
URL='https://seaside.pacim.de/checkin.php?b=115156&h=fcfd0fc0663af8e93edbbeeea0b80abd'
def active(pg): return pg.eval_on_selector('.tabbar .tab.active','e=>e.getAttribute("data-tab")')
def tswipe(cdp,x0,x1,y=300,steps=12):
    cdp.send('Input.dispatchTouchEvent',{'type':'touchStart','touchPoints':[{'x':x0,'y':y}]})
    for i in range(1,steps+1): cdp.send('Input.dispatchTouchEvent',{'type':'touchMove','touchPoints':[{'x':x0+(x1-x0)*i/steps,'y':y}]})
    cdp.send('Input.dispatchTouchEvent',{'type':'touchEnd','touchPoints':[]})
def vscroll(cdp,x,y0,y1,steps=10):
    cdp.send('Input.dispatchTouchEvent',{'type':'touchStart','touchPoints':[{'x':x,'y':y0}]})
    for i in range(1,steps+1): cdp.send('Input.dispatchTouchEvent',{'type':'touchMove','touchPoints':[{'x':x,'y':y0+(y1-y0)*i/steps}]})
    cdp.send('Input.dispatchTouchEvent',{'type':'touchEnd','touchPoints':[]})
with sync_playwright() as pw:
    b=pw.chromium.launch()
    ctx=b.new_context(viewport={'width':390,'height':844}, has_touch=True, is_mobile=True)
    pg=ctx.new_page(); cdp=ctx.new_cdp_session(pg)
    pg.goto(URL, wait_until='networkidle'); pg.wait_for_timeout(700)
    # touch both ways
    tswipe(cdp,330,40); pg.wait_for_timeout(400); a1=active(pg)
    tswipe(cdp,330,40); pg.wait_for_timeout(400); a2=active(pg)
    tswipe(cdp,40,330); pg.wait_for_timeout(400); a3=active(pg)
    print('touch L,L,R ->',a1,a2,a3)
    # vertical scroll test on notizen (add long content first by injecting tall block)
    pg.eval_on_selector('#pane-notizen','e=>{var d=document.createElement("div");d.style.height="1500px";d.id="tall";e.appendChild(d);}')
    tswipe(cdp,330,40); pg.wait_for_timeout(400)  # go to notizen
    before=pg.eval_on_selector('#pane-notizen','e=>e.scrollTop')
    vscroll(cdp,200,600,150); pg.wait_for_timeout(300)
    after=pg.eval_on_selector('#pane-notizen','e=>e.scrollTop')
    hd=pg.eval_on_selector('.hd','e=>Math.round(e.getBoundingClientRect().top)')
    print('vscroll: before',before,'after',after,'(scrolled:',after>before,') header top',hd)
    b.close()

Youez - 2016 - github.com/yon3zu
LinuXploit