⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
uwsgi
/
tests
/
View File Name :
harakiri.py
# ./uwsgi --master --http :8080 --harakiri 1 --wsgi-file tests/harakiri.py --harakiri-graceful-timeout 1 --py-call-osafterfork --lazy-apps --enable-threads --threads 2 --harakiri-graceful-signal 31 import time import uwsgi import signal import sys import atexit def sig_handler(n, fp): print("[Python App] attempting graceful shutdown triggered by harakiri (signal %d)" % n) exit(1) def application(e, s): print("[Python App] sleeping") time.sleep(3) s('200 OK', [('Content-Type', 'text/html')]) return [b"OK"] def exit_handler(): time.sleep(3) # Should not reach this line (graceful harakiri deadline expired) print("[Python App] exiting now") atexit.register(exit_handler) signal.signal(signal.SIGSYS, sig_handler)