all_modules_3 = ['AptUrl','hmac','requests_unixsocket','CommandNotFound','apport','hpmudext','resource','Crypto','apport_python_hook','html','rlcompleter','DistUpgrade','apt','http','runpy','HweSupportStatus','apt_inst','httplib2','scanext','LanguageSelector','apt_pkg','idna'...
'asyncore','janitor','simplejson','_bisect','atexit','json','site','_blake2','audioop','keyring','sitecustomize','_bootlocale','base64','keyword','six','_bz2','bdb','language_support_pkgs','smtpd','_cffi_backend',
fcntl UNIX file control Operating System grp Unix group database (Unix) Operating System msilib Windows installer (Deprecated: Removed in 3.13) Operating System msvcrt MS VC++ Runtime (Windows) Operating System os Operating system interface Operating System platform System information Operating System po...
'fcntl', 'ptyprocess', 'warnings', '_stat', 'filecmp', 'pwd', 'wave', '_string', 'fileinput', 'py_compile', 'weakref', '_strptime', 'fnmatch', 'pyatspi', 'webbrowser', '_struct', 'formatter', 'pyclbr', 'wsgiref', '_symtable', 'fractions', 'pydoc', 'xdg', '_sysconfig...
sizeof_hd_driveid = struct.calcsize(hd_driveid_format_str) # ensure our format string is the correct size # 512 is extracted using sizeof(struct hd_id) in the c code assert sizeof_hd_driveid == 512 # Call native function buf = fcntl.ioctl(fd, HDIO_GET_IDENTITY, " " * sizeof...
builtin_function_or_method类/类型__call__后直接运行eval。 最后,继承链的逃逸还有一些利用第三方库的方式,比如 jinja2,这类利用方式应该是叫 SSTI,可以看这个:传送门,这里就不多说了。 文件读写 2.x 有个内建的 file: >>> file('key').read() 'Macr0phag3\n' >>> file('key', 'w').write(...
In Python 2.2, iteration can be implemented separately, and __getitem__() methods can be limited to classes that really do support random access. The basic idea of iterators is simple. A new built-in function, iter(obj) or iter(C, sentinel), is used to get an iterator. iter(obj) re...
36.5. crypt — Function to check Unix passwords 36.6. dl — Call C functions in shared objects 36.7. termios — POSIX style tty control 36.8. tty — Terminal control functions 36.9. pty — Pseudo-terminal utilities 36.10. fcntl — The fcntl and ioctl system calls ...
fcntl.pyi filecmp.pyi fileinput.pyi fnmatch.pyi formatter.pyi fractions.pyi ftplib.pyi functools.pyi gc.pyi genericpath.pyi getopt.pyi getpass.pyi gettext.pyi glob.pyi graphlib.pyi grp.pyi gzip.pyi hashlib.pyi heapq.pyi hmac.pyi imaplib.pyi imghdr.pyi imp.pyi inspect.pyi io.pyi ip...
fcntl¶ 增加了F_OFD_GETLK,F_OFD_SETLK和F_OFD_SETLKW等常量。 (由 Dong-hee Na 在bpo-38602中贡献。) ftplib¶ 现在FTP和FTP_TLS当它们的构造器所给定的超时参数为零以防止创建非阻塞套接字时会引发ValueError。 (由 Dong-hee Na 在bpo-39259中贡献。) ...