Windows XP source code has been leaked. This is not good for anyone still using it.

The source code for Windows XP has been leaked, this means that any exploits still in the code are out in the open for all to see. Apparently a lot of things have been discovered already. Windows XP included an old, but non-functional theme called “Candy”, this was a Macintosh OSX styled theme. I guess … Read more

How to compile the leaked CS:GO source code leak. This apparently works.

1. Install Visual Studio Community 2015 on Windows 10 64 bit 2. Create the solution with CreateSolution.bat 3. Replace any #include “../../src/public/vgui_controls/Controls.h” with #include “../../public/vgui_controls/Controls.h” 4a. Copy cryptlib.lib from hl2_src\lib\common\win32\2015\release\cryptlib.lib to cstrike15_src\lib\win32\2015\release\ (create the folders as neccessary) 4b. copy hl2_src\lib\public\libcef.lib into cstrike15_src\lib\win32\release\libcef.lib Apply the fixes: `git am < basic_fixes.patch` basic_fixes.patch1 2 3 4 5 6 ... Read more

Team Fortress 2 and Counterstrike source code leaked on the Internet.

The source code for Counterstrike GO and Team Fortress 2 has been leaked on the Internet, there is a torrent of various utilities and the complete source code in C++. I wonder what the lawyers for these companies will think of this debacle. Who leaked the source code in the first place? Apparently, some Remote … Read more

Old UNIX code from 1979. This is very interesting.

This very old UNIX source code from 1979. This is source code for the Bourne shell. This code looks alien compared to modern C code, I wonder if it would even compile on a modern machine. Have a look here: https://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/expand.c. But I installed all the include files and it would not compile on Kali … Read more

Save player`s loadout after closing arsenal in Arma 3.

To save the player`s loadout after they close the arsenal in Arma 3, put this code in the initPlayerLocal.sqf file. This code will save the player loadout after the arsenal is closed. [missionnamespace,"arsenalClosed", { [player, [missionNamespace, "inventory_var"]] call BIS_fnc_saveInventory; titletext ["Arsenal loadout saved.", "PLAIN DOWN"]; }] call bis_fnc_addScriptedEventhandler;[missionnamespace,"arsenalClosed", { [player, [missionNamespace, "inventory_var"]] call BIS_fnc_saveInventory; titletext … Read more

Some very useful Windows 7 scripts to get system information.

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

Very nice C code to generate a random string. And some other useful info.

This code generates a random string when run, this could be quite useful. Print some very useful Linux system information using C. These two C programming samples should be quite useful to any programmer on Linux. Print a random fortune from an array. This program prints a random fortune from an array. This is a … Read more

Arma 3 scripting tricks and samples for making missions.

Detect if a player has the APEX DLC. if (395180 in getDLCs 1) then { (_this select 0) ctrlsettext ‘\a3\Ui_f\Data\Logos\arma3apex_white_ca.paa’; };if (395180 in getDLCs 1) then { (_this select 0) ctrlsettext ‘\a3\Ui_f\Data\Logos\arma3apex_white_ca.paa’; }; Remove all NVG goggles and weapons from enemies. { if (side _x == east) then { _x unassignItem "NVGoggles"; _x removeItem "NVGoggles"; … Read more

Get nice system information on Macintosh OS with the command line.

Get information about apps installed on your Macintosh PC with the lsappinfo command. Use grep as shown below to find out information about a certain app, i.e Firefox in this case. deusexmachina:~ jason$ lsappinfo | grep Firefox 24) "Firefox" ASN:0x0-0x2a02a: bundle path="/Applications/Firefox.app" executable path="/Applications/Firefox.app/Contents/MacOS/firefox" 26) "FirefoxCP WebExtensions" ASN:0x0-0x2c02c: bundle path="/Applications/Firefox.app/Contents/MacOS/plugin-container.app" executable path="/Applications/Firefox.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container" parentASN="Firefox" ASN:0x0-0x2a02a: (inferred) … Read more

Arma 3 code snippets for making mods and missions.

This is a class that create a backpack that will unpack into a IED. It will detonate if shot at. class B_Carryall_EXP : Weapon_Bag_Base { scope = 2; class assembleInfo { assembleTo = "ModuleExplosive_IEDLandBig_F"; base = ""; displayName = "NATO Exp backpack."; dissasembleTo[] = {}; primary = 1; }; displayName = "NATO Exp backpack."; hiddenSelectionsTextures[] … Read more

Very evil and cool Arma 3 script snippets.

Spawn a bomb wherever the player clicks on the map. onMapSingleClick "’Bomb_03_F’ createVehicle _pos,TRUE";onMapSingleClick "’Bomb_03_F’ createVehicle _pos,TRUE"; Attach a KAB-250 bomb to every bullet you fire, this also gives you unlimited ammo. Very destructive script for any malicious Arma 3 player. player addEventHandler ["Fired", { ("Bomb_03_F" createVehicle [0,0,1e9]) attachTo [_this select 6, [0,0,0]]; (_this select … Read more

Code for Arma 3 to spawn you in a random jet with infinite ammo and refilling fuel.

This code will spawn you in a jet flying over the AO, this will pick a random jet and spawn you a long way up, so you will not crash before orienting yourself. Put this script in initPlayerLocal.sqf. private "_jet"; _jet = createVehicle [selectRandom ["O_Plane_Fighter_02_Stealth_F", "I_Plane_Fighter_04_F", "B_Plane_Fighter_01_Stealth_F", "O_Plane_CAS_02_dynamicLoadout_F"], getArray (configFile >> "CfgWorlds" >> worldName >> … Read more

Very useful C code samples. These might be very useful to someone.

Some very useful code samples for any C programmer. These might give you some new ideas. Print the time and date with C. #include <time.h> // For time function (random seed). #include <stdio.h> // For extra functions. printf(). #include <stdlib.h> // For getenv();   #define format "The time and date is: %A %d %B %Y. … Read more

Some more Arma 3 script samples.

Very useful Arma 3 scripting samples This scripting sample will remove the solar panels and doors from the Orange DLC tents and make them look like a good old fashioned MASH tent. med1 animateSource ["MedSign_Hide",1,true]; med1 animateSource ["Door_Hide",1,true]; med1 setObjectTextureGlobal [0,"\A3\Structures_F_Orange\Humanitarian\Camps\Data\MedicalTent_01_tropic_F_CO.paa"];med1 animateSource ["MedSign_Hide",1,true]; med1 animateSource ["Door_Hide",1,true]; med1 setObjectTextureGlobal [0,"\A3\Structures_F_Orange\Humanitarian\Camps\Data\MedicalTent_01_tropic_F_CO.paa"]; Add this code to your initServer.sqf … Read more

How to write a Hello World program in C that does not use main().

This simple program is a Hello World example that does not use the main() function. This is certainly possible in a C program. #define syscall(a, D, S, d) __asm__ __volatile__("syscall" : : "a"(a), "D"(D), "S"(S), "d"(d))   void _start(void) { syscall(1, 1, "Hello, World\n", 14); syscall(60, 0, 0, 0); }#define syscall(a, D, S, d) __asm__ … Read more