Skip to content

Instantly share code, notes, and snippets.

View deajan's full-sized avatar

Orsiris de Jong deajan

View GitHub Profile
#!/usr/bin/env bash
script_dir="$(dirname $0)"
if [ -f "$script_dir"/jre/bin/java ]; then
cd "$script_dir"
./jre/bin/java -Xmx128m -cp "lib/secure_shelp.jar:lib/secure_utils.jar:lib/secure_nlink.jar:lib/mail.jar:lib/activation.jar" -Djava.awt.headless=true SecureRunner1 com.aem.shelp.proxy.ProxyServerStop
else
cat <<< "$script_dir/jre/bin/java not found." 1>&2
exit 1
fi
#!/usr/bin/env bash
script_dir="$(dirname $0)"
if [ -f "$script_dir"/jre/bin/java ]; then
cd "$script_dir"
./jre/bin/java -Xmx384m -Djava.net.preferIPv4Stack=true -cp "lib/secure_shelp.jar:lib/secure_utils.jar:lib/secure_nlink.jar:lib/mail.jar:lib/activation.jar:lib/commons-logging.jar:lib/commons-pool.jar:lib/gnu-crypto.jar:lib/jradius-core.jar:lib/jradius-dictionary.jar:lib/jradius-extended.jar" -Djava.awt.headless=true SecureRunner1 com.aem.shelp.proxy.ProxyServerStartup &
else
cat <<< "$script_dir/jre/bin/java not found." 1>&2
exit 1
fi
[ 0.000000] microcode: microcode updated early to revision 0x9e, date = 2016-06-22
[ 0.000000] Linux version 4.8.10-300.fc25.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 6.2.1 20160916 (Red Hat 6.2.1-2) (GCC) ) #1 SMP Mon Nov 21 18:59:16 UTC 2016
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.8.10-300.fc25.x86_64 root=/dev/mapper/fedora_badcore0-root ro rd.lvm.lv=fedora_badcore0/root rd.lvm.lv=fedora_badcore0/swap rhgb quiet LANG=fr_FR.UTF-8 acpi_osi=! "acpi_osi=Windows 2009"
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]:
[ 0.000000] microcode: microcode updated early to revision 0x9e, date = 2016-06-22
[ 0.000000] Linux version 4.8.10-300.fc25.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 6.2.1 20160916 (Red Hat 6.2.1-2) (GCC) ) #1 SMP Mon Nov 21 18:59:16 UTC 2016
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.8.10-300.fc25.x86_64 root=/dev/mapper/fedora_badcore0-root ro rd.lvm.lv=fedora_badcore0/root rd.lvm.lv=fedora_badcore0/swap rhgb quiet LANG=fr_FR.UTF-8 acpi_osi=! "acpi_osi=Windows 2009"
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]:
[ 0.000000] microcode: microcode updated early to revision 0x9e, date = 2016-06-22
[ 0.000000] Linux version 4.8.10-300.fc25.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 6.2.1 20160916 (Red Hat 6.2.1-2) (GCC) ) #1 SMP Mon Nov 21 18:59:16 UTC 2016
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.8.10-300.fc25.x86_64 root=/dev/mapper/fedora_badcore0-root ro rd.lvm.lv=fedora_badcore0/root rd.lvm.lv=fedora_badcore0/swap rhgb quiet LANG=fr_FR.UTF-8 acpi_osi=! "acpi_osi=Windows 2009"
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]:
<?xml version='1.0' encoding='utf-8'?>
<interface>
<object class="pygubu.builder.widgets.scrolledframe" id="MainFrame">
<property name="borderwidth">5</property>
<property name="height">500</property>
<property name="relief">groove</property>
<property name="scrolltype">vertical</property>
<property name="takefocus">true</property>
<property name="usemousewheel">false</property>
<property name="width">700</property>
@deajan
deajan / Burp protocol 1 backups
Created November 13, 2017 19:33
Burp_tests_1
Run 1
2017-11-09 09:32:04 +0100: burp[27137] Client version: 2.1.22
2017-11-09 09:32:04 +0100: burp[27137] Protocol: 1
2017-11-09 09:32:04 +0100: burp[27137] Client is Windows
2017-11-09 09:32:04 +0100: burp[27137] Begin phase1 (file system scan)
2017-11-09 09:40:29 +0100: burp[27137] End phase1 (file system scan)
2017-11-09 09:40:29 +0100: burp[27137] Begin phase2 (receive file data)
2017-11-09 09:46:35 +0100: burp[27137] End phase2 (receive file data)
2017-11-09 09:46:35 +0100: burp[27137] Backup ending - disconnect from client.
@deajan
deajan / burp_tool.sh
Created December 4, 2017 18:13
burp_tool script
#!/usr/bin/env bash
PROGRAM="burp_tool"
PROGRAM_VERSION=0.2.0
PROGRAM_BUILD=2017120402
AUTHOR="(C) 2017 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
IS_STABLE=no
## burp-tool.sh - A script to check burp backup sanity
#!/usr/bin/env bash
PROGRAM="backup_tool_script"
PROGRAM_VERSION=0.4.0
PROGRAM_BUILD=2018021403
AUTHOR="(C) 2017-2018 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
IS_STABLE=yes
#TODO
# postponed arrays / files grow a lot. Consider having them "rolling"
@deajan
deajan / csv2json.sh
Created July 9, 2018 07:54 — forked from DecisionNerd/csv2json.sh
CSV to JSON converter using BASH. Original script from http://blog.secaserver.com/2013/12/convert-csv-json-bash/
#!/bin/bash
# CSV to JSON converter using BASH
# original script from http://blog.secaserver.com/2013/12/convert-csv-json-bash/
# thanks SecaGuy!
# Usage ./csv2json.sh input.csv > output.json
input=$1
[ -z $1 ] && echo "No CSV input file specified" && exit 1
[ ! -e $input ] && echo "Unable to locate $1" && exit 1