Skip to content

Instantly share code, notes, and snippets.

View NewEraCracker's full-sized avatar

Jorge Oliveira NewEraCracker

View GitHub Profile
@NewEraCracker
NewEraCracker / vulcan-logic-disassembler-0.12.0-build-fix.diff
Last active August 29, 2015 14:05
vulcan-logic-disassembler-0.12.0-build-fix.diff
diff -uNra vld-0.12.0.old/vld.c vld-0.12.0.new/vld.c
--- vld-0.12.0.old/vld.c Sat Sep 21 23:35:49 2013
+++ vld-0.12.0.new/vld.c Sat May 24 17:02:45 2014
@@ -251,7 +251,7 @@
static int vld_dump_fe (zend_op_array *fe APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
{
#if PHP_VERSION_ID < 50300
- TSRMLS_FETCH()
+ TSRMLS_FETCH();
#endif
#!/bin/sh
#
# This is a little script that will use PHP's lint functionality to
# check if syntax of PHP files is correct, ensuring less likelihood
# of bad code making it's way into the project.
#
# For best results, execute this in an environment with PHP version
# matching the one being used on the pfSense branch to be checked.
#
--- timezonedb-2016.6/php_timezonedb.h
+++ timezonedb-2016.6.1/php_timezonedb.h
@@ -26,7 +26,7 @@
extern zend_module_entry timezonedb_module_entry;
#define phpext_timezonedb_ptr &timezonedb_module_entry
-#define PHP_TIMEZONEDB_VERSION "2016.6"
+#define PHP_TIMEZONEDB_VERSION "2016.6.1"
PHP_MINIT_FUNCTION(timezonedb);
--- php5.4/Zend/zend.h
+++ php5.4/Zend/zend.h
@@ -212,6 +212,7 @@
#define ZEND_FILE_LINE_EMPTY_CC , ZEND_FILE_LINE_EMPTY_C
#define ZEND_FILE_LINE_ORIG_RELAY_C __zend_orig_filename, __zend_orig_lineno
#define ZEND_FILE_LINE_ORIG_RELAY_CC , ZEND_FILE_LINE_ORIG_RELAY_C
+#define ZEND_ASSERT(c) assert(c)
#else
#define ZEND_FILE_LINE_D
#define ZEND_FILE_LINE_DC
@NewEraCracker
NewEraCracker / mod_antiloris.c
Created September 9, 2014 16:24
mod_antiloris.c
/*
mod_antiloris 0.6.0
Copyright (C) 2008 Monshouwer Internet Diensten
Author: Kees Monshouwer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<!DOCTYPE HTML>
<html>
<head>
<script><!--
function checksum(str, eight = false)
{
regex = new RegExp('^([A-Z]{1})([A-F]{1})?([0-9]{9,10}[1-9])$');
matches = regex.exec(str);
if ( (typeof matches == undefined) || (!matches) ) {
@REM For updates please check: https://github.com/NewEraCracker/bin2dat
@REM
@REM Creates the microcode.dat from an intel-ucode folder
@REM
@REM Date: Dec 25th 2018
@REM Author: Jorge Oliveira
@REM License: Public Domain
@REM
@REM No warranties or guarantees express or implied.
@NewEraCracker
NewEraCracker / .gitattributes
Last active June 5, 2020 19:46
NFSMW_SwapSize_200MB.bat accesses the system registry and sets Need for Speed Most Wanted SwapSize to 200MB (Default is 70MB) + More
*.bat eol=crlf
#!/bin/bash
set -e
OPENSSL_VER=1.1.1u
OPENSSL_DIR="/opt/openssl-$OPENSSL_VER"
OPENSSL_URL="https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz"
# OPENSSL_VER=1_1_1u+quic
# OPENSSL_DIR="/opt/openssl-$OPENSSL_VER"
@NewEraCracker
NewEraCracker / antiNSA.bat
Last active January 10, 2024 12:30
antiNSA.bat
@REM
@REM Absolute Computrace/Lojack/BeeInject Disabler
@REM
@REM Works around the Ring -3 Bootkit part of
@REM NSA/TAO and CIA/IOC Framework
@REM
@REM This tool will backup original Computrace/Lojack files,
@REM disable the services and then add dummy read-only copies.
@REM
@REM Edited to strengthen protection against removal