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
@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
}
@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:
#
#!/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 / installsharepointamsi.ps1
Last active July 25, 2025 13:54
sharepoint installation with amsi sync feature
# Install-SharePointWithAMSI.ps1
# Downloads and installs SharePoint Server on-premises with trial keys and enables AMSI integration
# Prompts user to choose SharePoint version: 2016, 2019, or Subscription Edition
# Ensure script runs with elevated privileges
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "This script requires administrative privileges. Please run as Administrator." -ForegroundColor Red
exit 1
}
@ArkaprabhaChakraborty
ArkaprabhaChakraborty / ftpenum.py
Created August 13, 2025 18:00
FTP enumeration
import ftplib
from datetime import datetime
import argparse
import os
def anonymous_ftp_enum(hostname, port=21, timeout=10):
"""
Log into FTP server with anonymous credentials and enumerate accessible content.
Args: