Skip to content

Instantly share code, notes, and snippets.

@luca-m
luca-m / virustotal_upload
Created May 26, 2014 19:01
Upload a sample to VirusTotal and pretty print the report. All in a handy alias.
#
# Upload a sample to VirusTotal and pretty print the report. All in a handy alias.
#
# Dependecies:
#
# * python > 2.7
# * pip install Pygments==1.4
# * curl
# * VirusTotal API key
#
@derrickorama
derrickorama / make-cert-and-pk.md
Last active April 17, 2024 23:10
Extracting certs/private keys from certificates that disable private key exporting

Situation

  • I have to use a Windows client to install a certificate (say via the Magnum PKI Client)
  • I cannot export the private key for this certificate
  • I am a Linux user that needs to have the cert and private key

Solution (steps)

Install/export certificate using Windows VM

@eyecatchup
eyecatchup / gist:11527136b23039a0066f
Last active March 17, 2023 17:12
Various Official Microsoft Windows (R) 8 and Windows (R) 8.1 Direct ISO Download Links
#
# KMS Client Setup Keys: http://technet.microsoft.com/en-us/library/jj612867.aspx
#
####################################################################
# Windows 8.1 Enterprise Evaluation ISO:
# @url: http://go.microsoft.com/fwlink/?LinkId=302161
####################################################################
@arraytools
arraytools / qt5.5_configure
Created July 15, 2015 16:51
qt 5.5 configure options
brb@brb-VirtualBox:~/qt-everywhere-opensource-src-5.5.0$ ./configure -h
+ cd qtbase
+ /home/brb/qt-everywhere-opensource-src-5.5.0/qtbase/configure -top-level -h
Usage: configure [options]
Installation options:
These are optional, but you may specify install directories.
-prefix <dir> ...... The deployment directory, as seen on the target device.
@njsmith
njsmith / ucrt-csv.py
Last active June 10, 2024 06:53
Information on linking to the new Windows UCRT
import sys
import subprocess
import csv
def describe_ucrt_lib(platform):
lib_path = "windows-10-sdk/Lib/10.0.10240.0/ucrt/{}/ucrt.lib".format(platform)
output = subprocess.check_output(["nm", lib_path])
output = output.decode("utf-8")
# Output (x86 32-bit) looks like:
@wh13371
wh13371 / tee.pl
Created February 26, 2016 19:08
perl - tee
#! /usr/bin/perl
# usage: ping 8.8.8.8 | tea.pl [-v] [-t] [FILE]
# -v = verbose | -t = prefix timestamp to output | FILE = output filename
use IO::Handle;
use Getopt::Long;
use Time::HiRes;
use POSIX;
@lesnerchen
lesnerchen / build-x64.bat
Created June 24, 2016 01:36 — forked from melihovv/build-x64.bat
Build Qt 5.5.1 from source with MSVC 2015 on Windows
REM http://pempek.net/articles/2015/10/18/compiling-qt-5-5-1-with-visual-studio-2015/
REM Set up \Microsoft Visual Studio 2015
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
ECHO ON
SET _CD=%CD%
SET _PATH=%PATH%
SET ICU_SOURCE=%_CD%\tools\icu-54.1\source
SET ICU_DIST=%_CD%\tools\icu-54.1\dist-64
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
** Rationale for using CPL as an installer format **
An issue with EXE installers is that they are likely to pick up bogus DLLs
from the directory they execute from, which, from security perspective, must
be assumed to be polluted with malicious stuff of all kinds. This holds even
for installers which carefully avoid DLL dependencies to the possible extent,
because the various DLL injection mechanisms built into Windows may introduce
additional dependencies which practically go beyond anyone's control.
https://blogs.msdn.microsoft.com/oldnewthing/20130802-00/?p=3633 provides some
@mokoshalb
mokoshalb / Office_kms
Created July 4, 2019 05:36 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms