One Hat Cyber Team
Your IP :
3.138.202.226
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
saltstack
/
salt
/
extras-3.10
/
pyroute2
/
inotify
/
View File Name :
inotify_msg.py
import struct from pyroute2.netlink import nlmsg_base, nlmsg_decoder_generic class inotify_msg(nlmsg_base, nlmsg_decoder_generic): fields = ( ('wd', 'i'), ('mask', 'I'), ('cookie', 'I'), ('name_length', 'I'), ) def decode(self): super(inotify_msg, self).decode() (name,) = struct.unpack_from( '%is' % self['name_length'], self.data, self.offset + 16 ) self['name'] = name.decode('utf-8').strip('\0') self.length = self['name_length'] + 16