Run:
sudo systemctl edit docker.serviceInsert:
[Service]| services: | |
| portainer: | |
| image: portainer/portainer-ce:alpine | |
| container_name: portainer | |
| command: -H unix:///var/run/docker.sock | |
| ports: | |
| - "8011:8000" | |
| - "9000:9000" | |
| - "9443:9443" | |
| volumes: |
Run:
sudo systemctl edit docker.serviceInsert:
[Service]| import subprocess | |
| import re | |
| import shutil | |
| import socket | |
| YELLOW = '\033[93m' | |
| GREEN = '\033[92m' | |
| WHITE = '\033[97m' | |
| GREY = '\033[90m' | |
| RESET = '\033[0m' |
| #!/bin/bash | |
| mkdir -p /home/hrms/infra_deploy/database_backups/backups | |
| while IFS=: read -r host port database user password; do | |
| [ -z "$host" ] && continue | |
| backup_dir="/home/hrms/infra_deploy/database_backups/backups/$database" | |
| mkdir -p "$backup_dir" | |
| backup_file="$backup_dir/${database}_$(date +%F_%H-%M-%S).sql" |
| #!/bin/bash | |
| src_dir="$(pwd)" | |
| python3 -m compileall "$src_dir" | |
| # Check if the compilation was successful | |
| if [ $? -ne 0 ]; then | |
| echo "Compilation failed." | |
| exit 1 | |
| fi |
| seq -w 00000000000 99999999999 | pv -l -s 100000000 > phone_number_wordlist.txt |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266Ping.h> | |
| #include <WiFiUdp.h> | |
| const char* ssid = "SSID"; | |
| const char* password = "PWD"; | |
| const IPAddress targetIP(192, 168, 0, 239); | |
| const IPAddress broadcastIP(192, 168, 0, 255); | |
| const byte mac[] = {0x54, 0xE1, 0xAD, 0x51, 0x27, 0x4B}; |
| // Everything Above.................. | |
| #X11 connection rejected because of wrong authentication. FIX | |
| xauth extract - $DISPLAY > /tmp/xauth.$USER | |
| sudo -u $USER XAUTHORITY=/tmp/xauth.$USER DISPLAY=$DISPLAY bash | |
| #Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted | |
| sudo sysctl -w kernel.unprivileged_userns_clone=1 |
| #!/bin/bash | |
| STATUS_FILE="$HOME/.screenstatus" | |
| # If file doesn't exist, create it with 0 | |
| if [ ! -f "$STATUS_FILE" ]; then | |
| echo 0 > "$STATUS_FILE" | |
| fi | |
| # %% | |
| # Import libraries | |
| import requests | |
| import html | |
| # %% | |
| # predefined variables like header and website vulnarable url parameter | |
| headers = { | |
| 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', | |
| 'Accept-Language': 'en-US,en;q=0.9', |