?

Log in

 

ffg tracking entry - Free as in Freedom

About ffg tracking entry

Previous Entry ffg tracking entry Mar. 27th, 2005 @ 04:30 am
Source Code for ffg.exe and comments:
Leave a comment
[User Picture Icon]
From:iie
Date:March 27th, 2005 08:41 pm (UTC)

ffg.0.00.0.cpp

(Link)
#include
[Error: Irreparable invalid markup ('<stdio.h>') in entry. Owner must fix manually. Raw contents below.]

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <iostream>
#include <fstream>

using namespace std;

int l=0;

//------------------------------------------------------------------------------

void intro()
{
cout << "Welcome to fsckFortressGrand ver 0.00.0 \n";
cout << "this is an early alpha test\n";
cout << "DO NOT DISTRIBUTE THIS BINARY\n\n\n";
}

//------------------------------------------------------------------------------

void writereg(int n)
{
// open (or create) a file names sec.reg and add the standard .reg header
ofstream reg ("sec.reg");
reg << "Windows Registry Editor Version 5.00 \n\n";
reg << "[HKEY_CURRENT_USER\\Software\\Fortress]\n";
//these next 5 is statments set the name and value(s) of the keys that will be written.
if (n<=1)
{
reg << "\"security leval\"=\"1\"\n\n";
}
if (n==2)
{
reg << "\"security leval\"=\"2\"\n\n";
}
if (n==3)
{
reg << "\"security leval\"=\"3\"\n\n";
}
if (n==4)
{
reg << "\"security leval\"=\"4\"\n\n";
}
if (n>=5)
{
reg << "\"security leval\"=\"5\"\n\n";
}
}

//------------------------------------------------------------------------------

void poke()
{
//use this set for testing (it has a prompt)
// system("regedit sec.reg");
//use this set for final compile (no prompt)
system("regedit -s sec.reg");
}

//------------------------------------------------------------------------------

int main()
{
intro();
cout << "what security leval would you like? (1-5)\n";
scanf("%d",&l);
writereg(l);
poke();
cout << "You must logoff and log back on for changes to take effect\n";
cout << "comming soon! automated logoff//on\n\n";
system("pause");
// fix me!
//add code to force a logout from windows
//something like system("shutdown -l");
}

//------------------------------------------------------------------------------
[User Picture Icon]
From:iie
Date:March 27th, 2005 08:49 pm (UTC)

ffg.0.01.0.cpp

(Link)
#include
[Error: Irreparable invalid markup ('<stdio.h>') in entry. Owner must fix manually. Raw contents below.]

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <iostream>
#include <fstream>

using namespace std;

int l=0;

//------------------------------------------------------------------------------

void intro()
{
cout << "Welcome to fsckFortressGrand ver 0.01.0\n";
cout << "BETA TEST 1\n";
cout << "Distributed under the GNU ver2 or later";
cout << "(at the writer's disgression)\n\n\n";
}

//------------------------------------------------------------------------------

void writereg(int n)
{
// open (or create) a file names sec.reg and add the standard .reg header
ofstream reg ("sec.reg");
reg << "Windows Registry Editor Version 5.00 \n\n";
reg << "[HKEY_CURRENT_USER\\Software\\Fortress]\n";
//these next 5 is statments set the name and value(s) of the keys that will be written.
if (n<=1)
{
reg << "\"security leval\"=\"1\"\n\n";
}
if (n==2)
{
reg << "\"security leval\"=\"2\"\n\n";
}
if (n==3)
{
reg << "\"security leval\"=\"3\"\n\n";
}
if (n==4)
{
reg << "\"security leval\"=\"4\"\n\n";
}
if (n>=5)
{
reg << "\"security leval\"=\"5\"\n\n";
}
}

//------------------------------------------------------------------------------

void poke()
{
//use this set for testing (it has a prompt)
// system("regedit sec.reg");
//use this set for final compile (no prompt)
system("regedit -s sec.reg");
}

//------------------------------------------------------------------------------

int main()
{
intro();
cout << "what security leval would you like? (1-5)\n";
scanf("%d",&l);
writereg(l);
poke();
cout << "You must logoff and log back on for changes to take effect\n";
cout << "comming soon! automated logoff//on\n\n";
system("pause");
// fix me!
//add code to force a logout from windows
//something like system("shutdown -l");
}

//------------------------------------------------------------------------------
(Leave a comment)
Top of Page Powered by LiveJournal.com