Skip to content

Instantly share code, notes, and snippets.

View x0341's full-sized avatar
🇵🇹
I may be slow to respond.

x0341 x0341

🇵🇹
I may be slow to respond.
View GitHub Profile
@x0341
x0341 / ova-to-box.md
Created August 22, 2019 00:08 — forked from aondio/ova-to-box.md
Convert VirtualBox .ova to Vagrant box

Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.

  1. List your VMs to find the VM id you want to convert:
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
  1. You can now package the .ova VM as Vagrant box:
@x0341
x0341 / HowtodownloadConsumerIso.txt
Created November 4, 2019 10:31 — forked from CHEF-KOCH/HowtodownloadConsumerIso.txt
Windows Redstone 4 (1803) - All download links - April Update
1. Open Chrome and search for User-Agent Switcher for Chrome extension, link https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg and select Add to Chrome
2. After the extension is installed/added, click the User-Agent extension and change User-Agent to Safari or Android mode
3. Open this link https://www.microsoft.com/en-us/software-download/windows10ISO
4. You will see the April Update ISO files, select the language and bit what you want, finally you can download it using download manager
5. Done, that's all, the direct link are valid only 24 hours after you created them.
Mirrors are here via adguard:
https://tb.rg-adguard.net/public.php
@x0341
x0341 / csr_iso_modify.sh
Created December 6, 2019 17:30 — forked from rschmied/csr_iso_modify.sh
Modify CSR 1000v ISO to activate serial console instead of VGA
#!/bin/bash
#set -x
[[ ! "$1" =~ .*\.iso ]] && { echo ".iso file name needed"; exit; }
TEMP=$(mktemp -d)
PDIR=$(pwd)
if [[ "$1" =~ ^/ ]]; then
SRC=$1
@x0341
x0341 / Enable-DockerRemoteAPI.md
Last active December 10, 2019 05:58 — forked from CollinChaffin/Enable-DockerRemoteAPI.md
Enable Docker Remote API on Photon OS v3(+)

Enable Local/Remote Docker API on PhotonOS

Prerequisites

You must have already performed the following in one form or another as well as properly set a STATIC IP. Bear in mind many instructions do not properly show how to commit iptables changes on Photon which then survive reboots.

iptables -A INPUT -p tcp --dport 2375 -j ACCEPT
iptables -A INPUT -p tcp --dport 2376 -j ACCEPT
iptables-save > /etc/systemd/scripts/ip4save
@x0341
x0341 / certbot.sh
Created February 27, 2020 23:05 — forked from omerxx/certbot.sh
# Generating let's encrypt manual cert with ease
# Usage: ./cert.sh me@company.com my.domain.com
# Output: ~/certbot/.certbot/config
#
generate_certificate() {
email=$1
domain=$2
sudo docker run -it --rm -v ~/certbot:/home/root \
certbot/certbot certonly --config-dir /home/root/.certbot/config \
--logs-dir /home/root/.certbot/logs \
@x0341
x0341 / fbctf-bases.txt
Created February 28, 2020 00:56 — forked from Bryan1998/fbctf-bases.txt
FBCTF Bases
### DEBIAN STRETCH ###
PART I: python script
Become root.
1. $ sudo -i
Make fbctf directory in /opt
2. # cd /opt
3. # mkdir fbctf
Get my modified score_base.py script
4. # wget https://gist.githubusercontent.com/Bryan1998/772cf58e6aff7cf360387886f5af56ff/raw/0eae6687df97af7c8246ff468f142730c8375c3c/score_base.py
@x0341
x0341 / generic_theme.json
Created March 17, 2020 20:09 — forked from vynmera/generic_theme.json
Rocket.Chat dark mode theme JSON draft
{
"_id": "generic_theme",
"name": "Rocket.Chat Theme",
"description": "An overview of the theming JSON for Rocket.Chat.",
"variables": {
"main": {
"error": "#CC243A",
"error-light": "#A6303F",
"alert": "#E8BE19",
"alert-light": "#CEAB20",
@x0341
x0341 / connect.ps1
Last active October 6, 2022 00:53 — forked from jdforsythe/connect.ps1
Remote Desktop Auto Login Powershell Script
echo "Connecting to 192.168.1.100"
$Server="192.168.1.100"
$User="Administrator"
$Password="AdminPassword"
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
@x0341
x0341 / Security Onion installation
Created December 30, 2020 23:09 — forked from cleesmith/Security Onion installation
Security Onion installation in a virtualbox
Security Onion
Aug 2014:
... my purpose for installing this was to:
- learn more about security stuff
- steal the packet captures (pcap) provided so I can replay them using tcpreplay for snort testing,
as it's not so sexy to just test using ICMP ping data or local rules that match anything
see:
http://blog.securityonion.net/