This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import psutil | |
import multiprocessing as mp | |
from multiprocessing import Process | |
from ctypes import * | |
threadpin = CDLL(".\\threadpin.dll") | |
print(threadpin.thread_assign_to_processor) | |
def f(thread, duty, freq, q): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $(id -u) == 0 ]]; then | |
echo "Running as root" | |
echo "Creating dir..." && mkdir /var/www/html/share | |
echo "Changing permissions..." && chmod -R 755 /var/www/html/share | |
echo "Changing owner..." && chown -R www-data:www-data /var/www/html/share | |
echo "Provide full path to payload:" | |
read payload_path | |
echo "Copying payload to share" && cp $payload_path /var/www/html/share | |
echo "Starting apache2 service..." && service apache2 start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Docker quick setup for Debian | |
if [[ $(id -u) == 0 ]]; then | |
echo "Running as root" | |
echo "Get updates..." && apt-get update | |
echo "Install dependencies..." && apt-get install ca-certificates curl gnupg | |
echo "Adding Docker's GPG key..." && install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg |