Skip to content

Instantly share code, notes, and snippets.

View aonez's full-sized avatar
🦗

aONe aonez

🦗
View GitHub Profile
@przemoc
przemoc / p7zip-pwd-from-stdin.patch
Created January 10, 2011 00:34
Awful p7zip hack for reading passwords from stdin. Compatible w/ 9.04 and 9.13.
--- p7zip_9.04.orig/CPP/7zip/UI/Console/Main.cpp 2009-06-27 16:18:14.000000000 +0200
+++ p7zip_9.04/CPP/7zip/UI/Console/Main.cpp 2011-01-10 01:25:36.000000000 +0100
@@ -48,6 +48,10 @@
#include "myPrivate.h"
#include "Windows/System.h"
+#include <iostream>
+
+#define MAX_PWD_SIZE_FROM_STDIN 1024
+