Skip to content

Instantly share code, notes, and snippets.

View zoracon's full-sized avatar

Alexis zoracon

View GitHub Profile
@zoracon
zoracon / hostinfo_json.go
Created May 11, 2023 21:34
hostinfo_json.go
package main
import (
"encoding/json"
"fmt"
"os/exec"
)
const (
unameCommand = "uname -a"
@zoracon
zoracon / hostinfo_improved.go
Created May 11, 2023 21:28
hostinfo_improved.go
package main
import (
"encoding/json"
"fmt"
"os/exec"
)
const (
unameCommand = "uname -a"
@zoracon
zoracon / arduino_c02_sensor.ino
Last active October 10, 2022 21:37
SCD30 with Arduino
// Basic demo for readings from Adafruit SCD30
#include <Adafruit_SCD30.h>
#include <LiquidCrystal.h>
// Create an LCD object. Parameters: (RS, E, D4, D5, D6, D7):
//* Arduino example code for DHT11, DHT22/AM2302 and DHT21/AM2301 temperature and humidity sensors. More info: www.makerguides.com */
LiquidCrystal lcd = LiquidCrystal(3, 4, 5, 6, 7, 8);
Adafruit_SCD30 scd30;
@zoracon
zoracon / gist:5269a31a868962ca37c3ab0d3d9e08d5
Last active October 11, 2022 23:27
Deobfubscation JS for Post on Frida
setImmediate(function() {
console.log("[*] Start");
Java.perform(function() {
var str = "773032205849207A3831326F1351202E3B306B7D1E5A3B33252B382454173735266C3D3B53163735222D393B475C7A37222D7F38421B6A66643032205849206477303220584920643D2223725C503A3F39636C725F5C237A082C383C7950223F65023F3D5F4039353E3079755F5F666E1134141F5C4C64377A1B671F565A1B2C7F7B101F42700D1F39331717161574213F2B2337505D27606B712C7B0A543D342E317F214558262E636A6A6E1E4A37282233256C"
console.log("[*] Loading z1")
var clazz_z1 = Java.use('com.supercell.titan.z1');
// var bytes = clazz_z1.a(str); For some reason the byte array had spaces so had to hardcode it below...
@zoracon
zoracon / dht22humtmp.md
Last active February 23, 2021 04:43
DHT22 HUM & TMP + LCD for Arduino Uno

DHT22 TMP and Humidifier Sensor + LCD Display

Alternative to IoT based devices for nursery

#include <LiquidCrystal.h>

// Create an LCD object. Parameters: (RS, E, D4, D5, D6, D7):
//* Arduino example code for DHT11, DHT22/AM2302 and DHT21/AM2301 temperature and humidity sensors. More info: www.makerguides.com */
LiquidCrystal lcd = LiquidCrystal(3, 4, 5, 6, 7, 8);
@zoracon
zoracon / makeNotes.js
Last active December 17, 2020 23:01
Google Apps Script Note Generator from Sheets
function createNotesDoc() {
var sheet = SpreadsheetApp.getActiveSheet();
var data = sheet.getDataRange().getValues();
var lastrow = data.length - 1;
// Static data
var date = data[lastrow][0];
var name = data[lastrow][1];
var attendees = data[lastrow][2];
@zoracon
zoracon / ff_android.md
Last active December 7, 2020 22:45
Install HTTPS Everywhere on FireFox: Android

How to Install HTTPS Everywhere on Firefox, Android

Open Browser on Phone and go to Add-Ons section

@zoracon
zoracon / hennge.go
Last active September 25, 2020 18:17
HENNGE Challenge
package main
import (
"fmt"
"math/rand"
"strconv"
"time"
)
var sum []int // sums array
@zoracon
zoracon / mm-theme-2077.txt
Created September 10, 2020 19:04
Mattermost Theme Ciolors: 2077
{"sidebarBg":"#021626","sidebarText":"#f92e8e","sidebarUnreadText":"#e9b434","sidebarTextHoverBg":"#00e4cf","sidebarTextActiveBorder":"#00e4cf","sidebarTextActiveColor":"#ffffff","sidebarHeaderBg":"#021626","sidebarHeaderTextColor":"#e9b434","onlineIndicator":"#52adad","awayIndicator":"#e9b434","dndIndicator":"#f74343","mentionBg":"#66cccc","mentionBj":"#ffffff","mentionColor":"#ffffff","centerChannelBg":"#021626","centerChannelColor":"#f92e8e","newMessageSeparator":"#9930cd","linkColor":"#3dadad","buttonBg":"#66cccc","buttonColor":"#ffffff","errorTextColor":"#9930cd","mentionHighlightBg":"#f92e8e","mentionHighlightLink":"#ffffff","codeTheme":"github"}
@zoracon
zoracon / docker-kali.txt
Last active April 13, 2022 20:12
Docker: Customize Kali Linux
1. docker pull kalilinux/kali-rolling
2. docker run -t -i kalilinux/kali-rolling /bin/bash
3.
apt update
apt dist-upgrade
apt autoremove
apt clean
4. apt install kali-tools-top10 / nmap / etc
5. Exit
6. docker ps -a (get container ID)