Skip to content

Instantly share code, notes, and snippets.

View ArkaprabhaChakraborty's full-sized avatar
🚩
Going offensive

Arkaprabha Chakraborty ArkaprabhaChakraborty

🚩
Going offensive
View GitHub Profile
#!/usr/bin/env python3
import argparse
import socket
from urllib.parse import urlparse
def get_ip_addresses(urls):
ip_addresses = []
for url in urls:
try:
@ArkaprabhaChakraborty
ArkaprabhaChakraborty / evilarc
Created August 17, 2023 14:48
evilarc for python 3
#!/usr/bin/env python3
#
# Copyright (c) 2009, Neohapsis, Inc.
# All rights reserved.
#
# Implementation by Greg Ose and Patrick Toomey
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
@ArkaprabhaChakraborty
ArkaprabhaChakraborty / update_datetime
Created July 29, 2023 07:52
Kali time update script
#!/bin/bash
get_datetime_from_internet() {
local time_server="http://worldtimeapi.org/api/ip"
local response=$(curl -s "$time_server")
if [[ $? -eq 0 && -n "$response" ]]; then
local new_datetime=$(echo "$response" | grep -oE '"datetime":"[^"]+' | cut -d '"' -f 4)
echo "$new_datetime"
fi
}