A very nice PHP example to parse a JSON file.
A very useful example for parsing JSON with a PHP script.
Read MoreA very useful example for parsing JSON with a PHP script.
Read MoreHow 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.
Read MoreSample 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…
Read MoreThis 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…
Read MoreA 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. ‘ ———————————————————————-…
Read MoreI 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…
Read MoreThis 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…
Read MoreThis 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 *…
Read Moreint 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?
Read More