A very nice PHP example to parse a JSON file.
A very useful example for parsing JSON with a PHP script.
A very useful example for parsing JSON with a PHP script.
How to set up and use the sudoreplay system on an Ubuntu server and then record all sudo usage for later examination. This could be very useful to a systems admin.
Sample OpenVPN configuration files to help with OpenVPN setup Below is a sample OpenVPN configuration file, this is running a server with an internal IP address of 10.8.0.0. This is using UDP and port 1194. If you set it up on port 443 instead, it can be hidden amongst other SSL traffic. That is a … Read more
This is a simple program that prints a few strings one after another in a loop, but it is randomized. This is very interesting. This goes to show it is very easy to do something like this. strings.c1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 … Read more
A useful VBScript sample to get user information. This is just basic information about the user. ‘ Logoninformation.vbs ‘ VBScript Logon script. ‘ This program demonstrates how to get information about the logged in user. ‘ This script tested on a Windows 7 machine and works perfectly too. ‘ ———————————————————————- ‘ Copyright (c) 2012 John … Read more
I have recently downloaded an executable, this is a piece of Linux malware. I run a query with strings on this file and I find out that this file makes changes to various utility commands on a Linux system such as netstat, ps, top and /bin/sh. This would be all the hallmarks of a rootkit … Read more
This is a working PPTP configuration I used to connect two Mikrotik routers together using a PPTP configuration on a local LAN. # jan/01/2002 01:56:00 by RouterOS 6.2 # software id = 8HHI-TYLD # /interface bridge add admin-mac=D4:CA:6D:31:02:53 auto-mac=no l2mtu=1598 name=bridge-local \ protocol-mode=rstp /interface wireless set 0 band=2ghz-b/g/n channel-width=20/40mhz-ht-above disabled=no distance=\ indoors l2mtu=2290 mode=ap-bridge ssid=MikroTik-310257 … Read more
This is a nice little program I wrote ages ago. /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later … Read more
int main() { write(1, "Hello world.\n", 14); return 0; }int main() { write(1, "Hello world.\n", 14); return 0; } Can you think of any simpler C example?