⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.117
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
landscape
/
lib
/
View File Name :
scriptcontent.py
from landscape.lib.hashlib import md5 def build_script(interpreter, code): """ Concatenates a interpreter and script into an executable script. """ return u"#!{}\n{}".format(interpreter or u"", code or u"") def generate_script_hash(script): """ Return a hash for a given script. """ encoded_script = script.encode("utf-8") # As this hash is sent in message which requires bytes in the schema, we # have to encode here. return md5(encoded_script).hexdigest().encode("ascii")