Test Post

sg bully
sg bully
sg bully

Testing…

import subprocess
import threading
import sys
import time

# Get the hosts from command line arguments
hosts = sys.argv[1:]

def run_command(host):
    # Start a new process and add it to the list
    command = ['sudo', 'nmap', '-oX', f'{host}.xml', '-v', '-A', '-sS', '-sU', host]
    process = subprocess.Popen(command, stdout=subprocess.PIPE)

    # Print the output of nmap in real-time
    while True:
        output = process.stdout.readline().decode('utf-8')
        if output == '' and process.poll() is not None:
            break
        if output:
            print(f'---------------------\n{host}: {output.strip()}\n---------------------')
    rc = process.poll()

threads = []
for h in hosts:
    thread = threading.Thread(target=run_command, args=(h,))
    threads.append(thread)
    thread.start()
    time.sleep(1)  # sleep a sec before the next loop

# Wait for all threads to finish
for thread in threads:
    thread.join()

print('All jobs are done.')
for f in *.xml; do xsltproc "$f" -o "${f%.xml}.html"; done

Ahoy, Captain!

After many a moon on this grand vessel, the time has come for this ol’ sea dog to set sail on a new adventure. I be writin’ ye this letter to announce that I’ll be abandonin’ me post and seekin’ fortunes anew.

I’ve hoisted many a sail and swabbed plenty o’ decks under yer command, and it’s been an honor to navigate the high seas with such a fearsome crew. But the call o’ the horizon be too strong to ignore, and I find meself yearnin’ for uncharted waters and tales yet to be told.

I be thankin’ ye for the opportunities to plunder and pillage, for the camaraderie of me fellow buccaneers, and for the countless sunsets that have graced our stern. ‘Tis been a voyage to remember, but now I must heed the whispers of the wind and follow where it leads.

I’ll be takin’ me leave come the next full moon, givin’ ye ample time to find a worthy mate to take me place at the helm. Until then, I’ll continue to serve with the same loyalty and bravery that I’ve always shown.

May yer rum never run dry and yer compass always point true.

Yours in bounty and adventure,

The Swashbuckler

That’s all folks!

Comments

One response to “Test Post”

Leave a Reply