adrian ilarion ciobanu malfaux

View patch-xt_RAWNAT.diff
1 2 3 4 5 6 7 8 9 10
--- /home/build/aur/xtables-addons/orig-src/src/xtables-addons-1.46/extensions/xt_RAWNAT.c 2012-08-23 16:54:21.000000000 +0300
+++ /home/build/aur/xtables-addons/src/xtables-addons-1.46/extensions/xt_RAWNAT.c 2012-11-30 18:13:18.000000000 +0200
@@ -154,7 +154,30 @@
__be32 new_addr;
iph = ip_hdr(*pskb);
- new_addr = remask(iph->daddr, info->addr.ip, info->mask);
+ if(info->mask < 32) {
+ void *transport_hdr = (void *)iph + ip_hdrlen(*pskb);
+ struct tcphdr *tcph;
View brutecounter.txt
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python
 
"""
for user1796738@stackoverflow.com
in reply to the stackoverflow thread: http://stackoverflow.com/questions/13210943/md5-brute-forcing
which was closed by some weirdos
 
 
=>> problem description <snip from the above url>, posted by user1796738:
... In someone's puzzle game, I reached this puzzle. I tried searching for an answer or a way
View dnslabel_case#hattrick-malfaux.txt
1 2 3 4 5 6 7 8 9 10
The normal path one takes to lowercase a string is to test if the character is uppercase and add 'a'
to it if so, while looping over the characters in the given string. A clean implementation may be
found in djbdns source code:
 
void case_lowerb(char *s,unsigned int len)
{
unsigned char x;
while (len > 0) {
--len;
x = *s - 'A';
View ubuntu-deb-src-util-linux-2.7.12_getty_login_args.diff
1 2 3 4 5 6 7 8 9 10
diff -Nru util-linux-2.17.2/login-utils/agetty.8 util-linux-2.17.2_login_params_patch/login-utils/agetty.8
--- util-linux-2.17.2/login-utils/agetty.8 2010-02-04 13:53:56.000000000 +0200
+++ util-linux-2.17.2_login_params_patch/login-utils/agetty.8 2011-04-06 14:54:31.962879000 +0300
@@ -12,6 +12,7 @@
.I port
.I baud_rate,...
.RI [ term ]
+.RI "[-- [login_program parameters]]"
.br
.BR "agetty " [\-8ihLmnw]
View ubuntu-deb-src-openssh-5.5p1-local_random_port_forward.diff
1 2 3 4 5 6 7 8 9 10
diff -Nru ./mux.c ../../openssh-5.5p1//mux.c
--- ./mux.c 2010-01-30 08:36:33.000000000 +0200
+++ ../../openssh-5.5p1//mux.c 2011-01-19 22:44:47.288605002 +0200
@@ -602,7 +602,8 @@
return 0;
}
/* XXX support rport0 forwarding with reply of port assigned */
- if (fwd.listen_port == 0 || fwd.listen_port >= 65536) {
+ //if (fwd.listen_port == 0 || fwd.listen_port >= 65536) {
+ if (fwd.listen_port >= 65536) {
View ipaddress.py.diff
1 2 3 4 5 6 7 8 9 10
--- /usr/lib/python3.3/ipaddress.py 2013-05-21 18:50:37.000000000 +0300
+++ ipaddress.py 2013-08-23 13:22:40.310226926 +0300
@@ -1,5 +1,8 @@
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
+#
+# backported to python 2.x by (malfaux) cia@mud.ro
+#
"""A fast, lightweight IPv4/IPv6 manipulation library in Python.
View softdog_autostart_debian-3.2.0-1
1 2 3 4 5 6 7 8 9 10
--- linux-source-3.2-mods/drivers/watchdog/softdog.c 2012-05-10 04:29:31.928352117 -0400
+++ linux-source-3.2/drivers/watchdog/softdog.c 2012-04-13 12:11:03.000000000 -0400
@@ -65,12 +65,6 @@
"Watchdog cannot be stopped once started (default="
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
-#define WATCHDOG_AUTOSTART 0
-static int autostart = WATCHDOG_AUTOSTART;
-module_param(autostart,
- "Start the timer automagically on init (default="
View softdog_autostart_linux-2.6.38-gentoo-r6.diff
1 2 3 4 5 6 7 8 9 10
--- ../x/linux-2.6.38/drivers/watchdog/softdog.c 2011-03-15 01:20:32.000000000 +0000
+++ ./drivers/watchdog/softdog.c 2011-06-15 18:44:44.000000000 +0000
@@ -64,6 +64,13 @@
"Watchdog cannot be stopped once started (default="
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
+#define WATCHDOG_AUTOSTART 0
+static int autostart = WATCHDOG_AUTOSTART;
+module_param(autostart,int,0);
+MODULE_PARM_DESC(autostart,
Something went wrong with that request. Please try again.