{"id":16,"date":"2024-04-11T15:17:58","date_gmt":"2024-04-11T22:17:58","guid":{"rendered":"https:\/\/canutethegreat.blog\/?p=16"},"modified":"2024-11-24T12:10:04","modified_gmt":"2024-11-24T20:10:04","slug":"test-post","status":"publish","type":"post","link":"https:\/\/blog.canutethegreat.com\/index.php\/2024\/04\/11\/test-post\/","title":{"rendered":"Test Post"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2112\" height=\"3168\" src=\"https:\/\/canutethegreat.blog\/wp-content\/uploads\/2024\/04\/bully.jpg\" alt=\"sg bully\" class=\"wp-image-15\"\/><figcaption class=\"wp-element-caption\">sg bully<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/canutethegreat.blog\/wp-content\/uploads\/2024\/04\/belle and sebastian - suicidegirl.mov\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Testing&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import subprocess\nimport threading\nimport sys\nimport time\n\n# Get the hosts from command line arguments\nhosts = sys.argv&#91;1:]\n\ndef run_command(host):\n    # Start a new process and add it to the list\n    command = &#91;'sudo', 'nmap', '-oX', f'{host}.xml', '-v', '-A', '-sS', '-sU', host]\n    process = subprocess.Popen(command, stdout=subprocess.PIPE)\n\n    # Print the output of nmap in real-time\n    while True:\n        output = process.stdout.readline().decode('utf-8')\n        if output == '' and process.poll() is not None:\n            break\n        if output:\n            print(f'---------------------\\n{host}: {output.strip()}\\n---------------------')\n    rc = process.poll()\n\nthreads = &#91;]\nfor h in hosts:\n    thread = threading.Thread(target=run_command, args=(h,))\n    threads.append(thread)\n    thread.start()\n    time.sleep(1)  # sleep a sec before the next loop\n\n# Wait for all threads to finish\nfor thread in threads:\n    thread.join()\n\nprint('All jobs are done.')<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>for f in *.xml; do xsltproc \"$f\" -o \"${f%.xml}.html\"; done<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Ahoy, Captain!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After many a moon on this grand vessel, the time has come for this ol\u2019 sea dog to set sail on a new adventure. I be writin\u2019 ye this letter to announce that I\u2019ll be abandonin\u2019 me post and seekin\u2019 fortunes anew.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019ve hoisted many a sail and swabbed plenty o\u2019 decks under yer command, and it\u2019s been an honor to navigate the high seas with such a fearsome crew. But the call o\u2019 the horizon be too strong to ignore, and I find meself yearnin\u2019 for uncharted waters and tales yet to be told.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I be thankin\u2019 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. \u2018Tis been a voyage to remember, but now I must heed the whispers of the wind and follow where it leads.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019ll be takin\u2019 me leave come the next full moon, givin\u2019 ye ample time to find a worthy mate to take me place at the helm. Until then, I\u2019ll continue to serve with the same loyalty and bravery that I\u2019ve always shown.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">May yer rum never run dry and yer compass always point true.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yours in bounty and adventure,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Swashbuckler<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s all folks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing&#8230; Ahoy, Captain! After many a moon on this grand vessel, the time has come for this ol\u2019 sea dog to set sail on a new adventure. I be writin\u2019 ye this letter to announce that I\u2019ll be abandonin\u2019 me post and seekin\u2019 fortunes anew. I\u2019ve hoisted many a sail and swabbed plenty o\u2019 decks [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":2,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions\/19"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/media\/15"}],"wp:attachment":[{"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.canutethegreat.com\/index.php\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}