Skip to content

Instantly share code, notes, and snippets.

@rusco
rusco / wincrawler.go
Created April 4, 2017 15:53
Golang Webcrawler against IIS 8.0 on Win10
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"github.com/Azure/go-ntlmssp"
)
@rusco
rusco / postcrawler.go
Created April 4, 2017 16:02
Post to .asmx with Golang on Win10
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"github.com/Azure/go-ntlmssp"
)
@rusco
rusco / filescrambler.go
Created April 11, 2017 08:39
Scramble binary files to make it unusable with restore option
package main
import (
"fmt"
"io/ioutil"
"log"
"math/rand"
"os"
)
@rusco
rusco / Babel4IE11Only.html
Last active November 29, 2017 10:47
Babel4IE11Only Html Include Recipe
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta author="[email protected]">
<meta date="29.11.2017">
<title>babel 4 ie11 only</title>
<script type="text/javascript">
@rusco
rusco / download_ext6.2.0.md
Created March 7, 2018 10:16 — forked from danielquisbert/download_ext6.2.0.md
Download extJS gpl 6.2
// 09.04.2018
// node --experimental-modules cssdownload.mjs
// downloads woff files embedded in links like https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons
import http from "http";
import readline from "readline";
import fs from "fs";
const rl = readline.createInterface({ input: fs.createReadStream("css.css"), crlfDelay: Infinity });
let idx = 0;
@rusco
rusco / rc4.go
Created May 2, 2018 16:00
simple RC4 encryption routine with build flags for keyword
//
// simple RC4 encryption routine with build flags for keyword, 02.05.2018
//
package main
import (
"crypto/rc4"
"fmt"
)
@rusco
rusco / windowsauth.go
Created May 28, 2018 14:58
Windows Autentication in Go with the github.com/Azure/go-ntlmssp package
package main
import (
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"net/http"
"github.com/Azure/go-ntlmssp"
@rusco
rusco / decimal2HHMISS.js
Created July 19, 2018 10:57
Convert decimal number (time) to hh:mm:ss in javascript
let decimal2HHMISS = function (decimalTimeString) {
let n = new Date(0, 0);
n.setSeconds(+decimalTimeString * 60 * 60);
return n.toTimeString().slice(0, 8);
};
@rusco
rusco / pagingsystables.sql
Created July 19, 2018 10:59
paging of system tables in Oracle v12 Database
WITH f
AS (SELECT object_name,
created,
ROWNUM rn,
COUNT (*) OVER (PARTITION BY NULL) cnt
FROM (SELECT object_name, created
FROM user_objects
WHERE ROWNUM < 17 --some kind of restriction
ORDER BY object_name))
SELECT f.*,