Skip to content

Instantly share code, notes, and snippets.

View LasseSkogland's full-sized avatar

Lasse Skogland LasseSkogland

  • TietoEvry Norway
  • Norway
View GitHub Profile
@LasseSkogland
LasseSkogland / sb1-api.ps1
Created April 20, 2021 17:38
Sparebank 1 - Personal API (Powershell)
# Go here for more information: https://developersparebank1.no/personlig-klient
$ClientID = ''
$ClientSecret = ''
$FinInst = ''
$RedirectUrl = 'http://localhost:8089/callback'
function New-StateCode {
return [System.Random]::new().Next();
}
@LasseSkogland
LasseSkogland / DuoWeb.cs
Last active February 27, 2021 22:26
Implementation of the new DuoWeb SDK v4 (frameless) in C# (Should support Universal Prompt)
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using System.Web;

Keybase proof

I hereby claim:

  • I am lasseskogland on github.
  • I am lasseskogland (https://keybase.io/lasseskogland) on keybase.
  • I have a public key ASCgvdqKVEsevMrGVCnG2B8tdEoBDd2S5uioSZ9moXDzawo

To claim this, I am signing this object:

<!DOCTYPE html>
<meta name="robots" content="noindex">
<html><head>
<title>Obfuscated name remapper</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body {
background: white;
color: black;
font-family: "Trebuchet MS",Helvetica,Tahoma,Arial,sans-serif;
@LasseSkogland
LasseSkogland / Console.h
Created March 30, 2017 21:23
Skid Simulator 2017
#pragma once
#include <consoleapi.h>
#include <string>
#include <memory>
class Console {
public:
Console() {
hConsole = GetConsoleWindow();
hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE);
@LasseSkogland
LasseSkogland / github-get.py
Created March 29, 2017 21:18
Getting latest releases from github repositories
import urllib2
import json
import sys
def getJson(url):
return json.loads(urllib2.urlopen(url).read())
def download(author_repo):
print 'Gathering information'
data = getJson('https://api.github.com/repos/' + author_repo + '/releases/latest')
@LasseSkogland
LasseSkogland / update.py
Created March 29, 2017 11:13
x64dbg Updater
import urllib2
import json
import time
import os
import subprocess
import shutil
from zipfile import ZipFile
DATE_FORMAT = '%Y-%m-%d_%H-%M'
#include <Windows.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
typedef int * RakPeer;
typedef UINT64 RAKNET_GUID;