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 / sb1-api.ps1
Created April 20, 2021 17:38
Sparebank 1 - Personal API (Powershell)
# Go here for more information:
$ClientID = ''
$ClientSecret = ''
$FinInst = ''
$RedirectUrl = 'http://localhost:8089/callback'
function New-StateCode {
return [System.Random]::new().Next();
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 ( on keybase.
  • I have a public key ASCgvdqKVEsevMrGVCnG2B8tdEoBDd2S5uioSZ9moXDzawo

To claim this, I am signing this object:

<!DOCTYPE html>
<meta name="robots" content="noindex">
<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 / Console.h
Created March 30, 2017 21:23
Skid Simulator 2017
#pragma once
#include <consoleapi.h>
#include <string>
#include <memory>
class Console {
Console() {
hConsole = GetConsoleWindow();
hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE);
LasseSkogland /
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('' + author_repo + '/releases/latest')
LasseSkogland /
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>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
typedef int * RakPeer;