| 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 : /proc/self/root/tmp/ |
Upload File : |
from playwright.sync_api import sync_playwright
hash=open('/tmp/thash.txt').read().strip()
def cookies():
cs=[]
for line in open('/tmp/cj_day.txt'):
if line.startswith('#') or not line.strip(): continue
p=line.strip().split('\t')
if len(p)>=7: cs.append({'name':p[5],'value':p[6],'domain':p[0].lstrip('.'),'path':p[2]})
return cs
with sync_playwright() as pw:
b=pw.chromium.launch()
# Settings-Seite (Admin)
ctx=b.new_context(viewport={'width':1150,'height':900}); ctx.add_cookies(cookies())
pg=ctx.new_page(); pg.on('pageerror', lambda e: print('PAGEERR:',e))
pg.goto('https://seaside.pacim.de/pacim/terminals/', wait_until='networkidle'); pg.wait_for_timeout(1200)
print('terminal rows:', len(pg.query_selector_all('#tmList tr[data-id]')))
pg.click('#tmList tr[data-id] .tm-edit'); pg.wait_for_timeout(900)
print('editor open:', not pg.eval_on_selector('#tmEditor','e=>e.classList.contains("d-none")'))
print('acc rows:', len(pg.query_selector_all('.tm-acc-row')))
pg.screenshot(path='/tmp/tm_settings.png', full_page=True)
ctx.close()
# Terminal-Portal: PIN-Screen (mobil)
ctx2=b.new_context(viewport={'width':400,'height':820}, device_scale_factor=2)
p2=ctx2.new_page(); p2.goto('https://seaside.pacim.de/terminal.php?h='+hash, wait_until='networkidle'); p2.wait_for_timeout(500)
p2.screenshot(path='/tmp/tm_pin.png')
# Übersicht (mit term cookie)
import urllib.parse
ctx3=b.new_context(viewport={'width':400,'height':820}, device_scale_factor=2)
# cookie aus term.txt
tc=[]
for line in open('/tmp/term.txt'):
if line.startswith('#') or not line.strip(): continue
p=line.strip().split('\t')
if len(p)>=7: tc.append({'name':p[5],'value':p[6],'domain':p[0].lstrip('.'),'path':p[2]})
ctx3.add_cookies(tc)
p3=ctx3.new_page(); p3.goto('https://seaside.pacim.de/terminal.php?h='+hash, wait_until='networkidle'); p3.wait_for_timeout(500)
print('overview tiles:', len(p3.query_selector_all('.tile')))
p3.screenshot(path='/tmp/tm_overview.png')
b.close()