!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.3.29 

uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
x86_64
 

 

Safe-mode: OFF (not secure)

/lib64/python3.6/site-packages/systemd/test/   drwxr-xr-x
Free 1007.2 GB of 1859.98 GB (54.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_login.py (1.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from __future__ import print_function
import select
import contextlib
import errno

from systemd import login

import pytest

@contextlib.contextmanager
def skip_oserror(code):
    try:
        yield
    except (OSError, IOError) as e:
        if e.errno == code:
            pytest.skip()
        raise

def test_seats():
    # just check that we get some sequence back
    with skip_oserror(errno.ENOENT):
        seats = login.seats()
        assert len(seats) >= 0

def test_sessions():
    with skip_oserror(errno.ENOENT):
        sessions = login.sessions()
        assert len(sessions) >= 0

def test_machine_names():
    with skip_oserror(errno.ENOENT):
        machine_names = login.machine_names()
        assert len(machine_names) >= 0

def test_uids():
    with skip_oserror(errno.ENOENT):
        uids = login.uids()
        assert len(uids) >= 0

def test_monitor():
    p = select.poll()

    with skip_oserror(errno.ENOENT):
        m = login.Monitor("machine")
        p.register(m, m.get_events())
        login.machine_names()
        p.poll(1)
        login.machine_names()

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0072 ]--