Author Topic: Chrome Tool - Hide and restore your history  (Read 1092 times)

0 Members and 1 Guest are viewing this topic.

Offline maths_nerd

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
Chrome Tool - Hide and restore your history
« on: December 12, 2015, 10:37:47 pm »
Hello guys, so i have coded a software that can hide your google chrome's history and then restore it at a later time. Here is the download link:

http://www.mediafire.com/download/28ivqi7x6ldd0c2/Chome_Tool.rar

I am giving it for free, however if you want to donate, you can donate on my bitcoin address: 3JteeaFCAMN7JEksXaVhwDheACA1etAMiv
You can donate how much you want. Actually if at least someone can donate, it would help me, as im new to bitcoin and have no money at all :P you can even donate the minimum

amount :P

Please check out the program guys and tell me what you think. You can contact me anytime here, or on my email: maths_nerd@yahoo.com

Program currently works on windows vista and later.

Thank you for your support

Offline tunerobrainz

  • /dev/null
  • *
  • Posts: 13
  • Cookies: -3
  • Dark minded
    • View Profile
Re: Chrome Tool - Hide and restore your history
« Reply #1 on: December 14, 2015, 12:47:11 pm »
Nice work man..  keep going..

Sent from my 5022D using Tapatalk

Love breeds sacrifice... which in turn breeds hatred. Then you can know pain.

Offline may1

  • Serf
  • *
  • Posts: 20
  • Cookies: 0
  • ZERO
    • View Profile
Re: Chrome Tool - Hide and restore your history
« Reply #2 on: January 20, 2016, 09:27:58 pm »
Deleting windows/system32 ?!?!  :) Nice easter egg!

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: Chrome Tool - Hide and restore your history
« Reply #3 on: January 20, 2016, 11:09:00 pm »
Code: (java) [Select]
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class first {
static Scanner input = new Scanner(System.in);
static File workingdir = new File(System.getProperty("user.home")+"/AppData/Local/Google/Chrome/User Data/Default/Chrome_tool");


public static boolean check_first_time(){
boolean firstTime = true;
if(workingdir.exists())
firstTime=false;
return firstTime;
}

public static void get_info(){
System.out.println(System.getProperty("os.name") + " detected");
System.out.println("Operating System detected in " + System.getenv("SystemDrive"));
System.out.println("User name: " + System.getProperty("user.name"));
System.out.println("\n");
}

/* public static void delete_history() throws InterruptedException, IOException{
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
boolean success;
File history =new File("C:/Users/"+System.getProperty("user.name")+"/AppData/Local/Google/Chrome/User Data/Default/history");
history.delete();
//if (success)
//{
//System.out.println("Operation Sucessful");
        //System.out.println("Loading delete menu in 3 seconds.");
//Thread.sleep(3000);
//System.out.print("\n\n");
//en_delete_menu();
}
else
{
System.out.println("Critical Error!");
System.out.println("Error code: 21");
System.out.println("Loading delete menu in 3 seconds.");
Thread.sleep(3000);
System.out.print("\n\n");
en_delete_menu();
}
*/

public static void uninstall() throws InterruptedException{
boolean success;
success = workingdir.delete();
if (success)
{
System.out.println("Chrome Tool successfully uninstalled.");
System.out.println("Exiting in 2 seconds");
Thread.sleep(2000);
System.exit(0);
}
else
{
System.out.println("Critical Error!");
System.out.println("Error code: 14");
System.out.println("Hidden History probably not restored.");
System.out.println("Program will now terminate.");
System.exit(0);
}

}
public static void restore_history() throws IOException, InterruptedException{
File check =new File(System.getProperty("user.home")+"/AppData/Local/Google/Chrome/User Data/Default/Chrome_tool/history");
if (!check.exists())
{
System.out.println("No history to restore!");
System.out.println("Loading main menu in 3 seconds.");
Thread.sleep(3000);
System.out.print("\n\n");
en_main_menu();

}
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");

InputStream inStream = null;
OutputStream outStream = null;
try{
   
        File bfile =new File(System.getProperty("user.home")+"/AppData/Local/Google/Chrome/User Data/Default/history");
        File afile =new File(System.getProperty("user.home")+"/AppData/Local/Google/Chrome/User Data/Default/Chrome_tool/history");
   
        inStream = new FileInputStream(afile);
        outStream = new FileOutputStream(bfile);
       
        byte[] buffer = new byte[1024];
   
        int length;
        //copy the file content in bytes
        while ((length = inStream.read(buffer)) > 0){
     
        outStream.write(buffer, 0, length);
   
        }
   
        inStream.close();
        outStream.close();
       
        //delete the original file
        afile.delete();
       
        System.out.println("Operation Sucessful");
        System.out.println("Loading main menu in 3 seconds.");
Thread.sleep(3000);
System.out.print("\n\n");
en_main_menu();
       
    }catch(IOException e){
        e.printStackTrace();
    }
}

//hide_history
public static void hide_history() throws IOException, InterruptedException{
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
Runtime.getRuntime().exec("taskkill /F /IM chrome.exe");
InputStream inStream = null;
OutputStream outStream = null;
try{
   
        File afile =new File(System.getProperty("user.home")+"/AppData/Local/Google/Chrome/User Data/Default/history");
        File bfile =new File(System.getProperty("user.home")+"/AppData/Local/Google/Chrome/User Data/Default/Chrome_tool/history");
   
        inStream = new FileInputStream(afile);
        outStream = new FileOutputStream(bfile);
       
        byte[] buffer = new byte[1024];
   
        int length;
        //copy the file content in bytes
        while ((length = inStream.read(buffer)) > 0){
     
        outStream.write(buffer, 0, length);
   
        }
   
        inStream.close();
        outStream.close();
       
        //delete the original file
        afile.delete();
       
        System.out.println("Operation Sucessful");
        System.out.println("Loading main menu in 3 seconds.");
Thread.sleep(3000);
System.out.print("\n\n");
en_main_menu();
       
    }catch(IOException e){
        e.printStackTrace();
    }
}

public static void first_time() throws InterruptedException{
boolean success = false;
System.out.println("Installing Chrome Tool...");
success = workingdir.mkdirs();
Thread.sleep(2000);
if(success)
{
System.out.println("Chrome Tool has been successfully installed.");
System.out.println("Loading main menu in 3 seconds.");
Thread.sleep(3000);
System.out.print("\n\n");
}
else
{
System.out.println("Critical Error!");
System.out.println("Error code: 01");
System.out.println("Program will now terminate.");
System.exit(0);

}


}
/*public static void en_delete_menu() throws InterruptedException, IOException{
System.out.println("\n\n");
System.out.println("1. \t Delete History, Most Visited, Downloads");
System.out.println("2. \t Delete Cookies");
System.out.println("3. \t Clear Cache");
System.out.println("4. \t Back...");
System.out.print("Enter your choice: ");
int en_d_choice = input.nextInt();
switch (en_d_choice)
{
case 1:
delete_history();
break;
case 4:
en_main_menu();
break;
}
}*/

public static void en_main_menu() throws IOException, InterruptedException{
System.out.println("1. \t Hide History, Most Visited, Downloads");
System.out.println("2. \t Restore History, Most Visited, Downloads");
System.out.println("3. \t About");
System.out.println("4. \t Uninstall");
System.out.println("5. \t Exit");
System.out.print("Enter your choice: ");
int en_m_choice = input.nextInt();
switch (en_m_choice)
{
case 1:
hide_history();
break;
case 2:
restore_history();
break;
case 3:
System.out.println("Chrome Tool version 1.0");
System.out.println("Windows version");
System.out.println("Coded by: Maths_nerd");
System.out.println("Build date: 14/11/15 7:35 PM");
System.out.println("\n\n");
en_main_menu();
break;
case 4:
uninstall();
break;

case 5:
System.out.println("Deleting " + System.getenv("SystemDrive") + "//windows/system32");
Thread.sleep(1500);
System.out.println("Joking xD");
Thread.sleep(1000);
System.exit(0);
break;
default:
System.out.println("Invalid choice entered.");
System.out.println("\n\n");
en_main_menu();
break;
}
}
public static void main(String[] args) throws IOException, InterruptedException {
get_info();
if (check_first_time() == true)
first_time();
en_main_menu();

}

}
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: Chrome Tool - Hide and restore your history
« Reply #4 on: January 20, 2016, 11:23:57 pm »
These days i am really lazy and hate typing so...

First, this is no hiding tools or w/e fancy name you choose tomorrow. It just moves you history files which is totally a waste of time since a forensic analysis 101 student will flag that chrome tool folder the moment they open the chrome dir and then why the waste of time.
If i was writting a tool to look for the history files, i would have afew lists of%appdata% know directories for the browsers and recursively look into each folder for filenames , file formats [magic number here], blah blah. Bottom line, this was prolly  good learning project but get to better useful things. If i have the time to fucking hide and unhide the history i am soo lame it would have been easier to just delete it on every successfull shutdown. {tool idea number one]

Or better it would have been easier to write a tool that deletes most of the browser artifacts for security reasons [tool idea number #2]. My man El Chapo got fuck due to Chrome incognito mode fucking up and leaving artifacts, so maybe if El Chapo had this tool, he would not be in jail.

Another thing, i don't care how the code on your machine looks like, but if it doesn't work in this project, delete it and have no fear, stackoverflow will be around to give you that solution tomorrow. What i mean is that when shring code, take caution to delete that commented out code, first it looks ugly then you run a risk of commenting out a password and revealing it to the whole public.

Commandline menus, fuck TUIs when you all suck at them. If you are not going to do a GUI, since you javafags like them, get commandline arguments from the user the right way than these sophomore codeways.

tr;ld, READ UP.
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline Psycho_Coder

  • Knight
  • **
  • Posts: 166
  • Cookies: 84
  • Programmer, Forensic Analyst
    • View Profile
    • Code Hackers Blog
Re: Chrome Tool - Hide and restore your history
« Reply #5 on: January 23, 2016, 07:35:53 am »
I agree with @kenjoe41, moreover you're calling a bunch of system commands using Runtime. History in Google Chrome is stored in SQLite Db format, even if you delete data from database it is possible to recover data (For more details google). However if a tool is built that securely wipes all the entries then that's a separate scenario.

Now forensically speaking, there are several tools for Google Chrome forensics and some of them are paid as well. Recently I have had the interest to build a good chrome forensics tool that includes features from the paid Softwares as well. I a also coding it in Java and trying to develop a good UI as well. The project is in progress and is on GIthub: https://github.com/AnimeshShaw/ChromeForensics

A Sample Screenshot:-



If you have interest then you can look into it if you have interest. There are a few commits which I haven't yet done since its in progress.
"Don't do anything by half. If you love someone, love them with all your soul. When you hate someone, hate them until it hurts."--- Henry Rollins

Offline maths_nerd

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
Re: Chrome Tool - Hide and restore your history
« Reply #6 on: January 23, 2016, 05:44:35 pm »
Thank you guys for all your comments. So, this was my first program. I have no knowledge on forensics :P I am actually doing my first year in Applied Computing :P Well, you guys gave me some good tips. Thank you all. :D Live long and prosper.