Skip to content

Instantly share code, notes, and snippets.

View Tcarters's full-sized avatar

Tcarters Tcarters

  • Lunar Planet
  • 13:27 (UTC +05:30)
View GitHub Profile
@Tcarters
Tcarters / PowerView-3.0-tricks.ps1
Created February 24, 2021 18:39 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@Tcarters
Tcarters / ip2dh.py
Created March 28, 2021 10:15 — forked from mzfr/ip2dh.py
Convert IP address to Decimal or hexadecimal format
"""
You can run this in the following format:
For decimal: python3 ip2dh.py D <Ip-address>
For Hexadecimal: python3 ip2dh.py H <Ip-address>
"""
#!/usr/bin/python3
import sys
if len(sys.argv) < 3:

XFCE Desktop


How to install XFCE Desktop Environment in Kali Linux:

Command:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

How to remove XFCE in Kali Linux:

Command:

@Tcarters
Tcarters / made-with-love.html
Created June 23, 2021 17:18 — forked from oliveratgithub/made-with-love.html
Various snippets to add "Made with love" to your website using HTML, CSS and JavaScript
<!-- Example #1 - no styling -->
Made with ❤ in Switzerland
Made with ♥ in Switzerland
Made with ♡ in Switzerland
Made with ❤️ in Switzerland
Made with ♥️ in Switzerland
<!-- Example #2 - inline-styled ❤ -->
Made with <span style="color: #e25555;">&#9829;</span> in Switzerland
Made with <span style="color: #e25555;">&hearts;</span> in Switzerland
@Tcarters
Tcarters / convert_cvs_to_yaml.py
Last active April 4, 2024 02:35
A demo to group data column in a csv file passing through python and using ansible to display it.
import csv
import yaml
# Path to your CSV file
csv_file_path = 'sample_ip.csv'
# Initialize an empty dictionary to store the groups and hostnames
groups = {}
# Open and read the CSV file
@Tcarters
Tcarters / .env
Last active May 29, 2024 01:30
Create a sample ELK stack using docker-compose
ELASTIC_PASSWORD=elastic_password
KIBANA_PASSWORD=kibana_password
# Module: suricata
# Docs: https://www.elastic.co/guide/en/beats/filebeat/main/filebeat-module-suricata.html
- module: suricata
# All logs
eve:
enabled: true
var.paths:
- /var/log/suricata/eve.json
@Tcarters
Tcarters / app-subnets-and-nsg.tf
Created October 24, 2024 15:55
Building a 4-Tier Virtual Network on Azure Cloud using Terraform
## Step 1: App Subnet
resource "azurerm_subnet" "appsubnet" {
name = "${azurerm_virtual_network.vnet.name}-${var.app_subnetName}"
resource_group_name = azurerm_resource_group.mainRG.name
virtual_network_name = azurerm_virtual_network.vnet.name
address_prefixes = var.app_subnetAddress
}
## Step 2: App Network Security Group
resource "azurerm_network_security_group" "app_subnet_nsg" {