Category: Java

Android, Java

Java 8 Jar & Android APK Reverse Engineering Suite

Bytecode Viewer is an Advanced Lightweight Java Bytecode Viewer, GUI Java Decompiler, GUI Bytecode Editor, GUI Smali, GUI Baksmali, GUI APK Editor, GUI Dex Editor, GUI APK Decompiler, GUI DEX Decompiler, GUI Procyon Java Decompiler, GUI Krakatau, GUI CFR Java Decompiler, GUI FernFlower Java Decompiler, GUI DEX2Jar, GUI Jar2DEX, GUI Jar-Jar, Hex Viewer, Code Searcher, …

Java

Create a Java Certificate

keytool.exe -genkey -keyalg algorithm -alias my_alias -keystore myfilename.jks -storepass my_password -validity my_days -keysize my_sizekeytool.exe -genkey -keyalg algorithm -alias my_alias -keystore myfilename.jks -storepass my_password -validity my_days -keysize my_size Options: -alias <alias> alias name of the entry to process -keyalg <keyalg> key algorithm name -keysize <keysize> key bit size -sigalg <sigalg> signature algorithm name -destalias <destalias> destination …

Java

Search Google Programmatically with Java

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL;   public class Google_Search { private final String _url; private URL _url_obj; private HttpURLConnection _connection; private final String _userAgent; private int _responseCode; private StringBuffer _totalResults; private final int _quantity; private final int _start; private final String _searchTerm;   public Google_Search(String SearchTerm){ _url = "http://www.google.com"; _userAgent …

Java

List all running processes in Java

Tasklist displays a list of applications and services with their Process ID (PID) for all tasks running on either a local or a remote computer. void ListAllProcesses() { try { Process p = Runtime.getRuntime().exec("tasklist"); BufferedReader reader = new BufferedReader( new InputStreamReader(p.getInputStream())); String line; while ((line = reader.readLine()) != null) { System.out.println(line); } } catch (Exception …

Java, Microsoft Windows

Hide hidden files, system files and extensions with Java

void HideThemAll(){ try { Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 2 /f"); Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f"); Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v SuperHidden /t REG_DWORD /d 0 /f"); Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowSuperHidden /t REG_DWORD /d 0 /f"); } catch (IOException ex) { } }void HideThemAll(){ try { Runtime.getRuntime().exec("reg …

Java

Open source java library for libpcap and winpcap

jNetPcap is an open-source java library. It contains: A Java wrapper for nearly all libpcap library native calls Decodes captured packets in real-time Provides a large library of network protocols (core protocols) Users can easily add their own protocol definitions using java SDK jNetPcap uses a mixture of native and java implementation for optimum packet …

Java

Save user settings in Java application

Class: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties;     public class configManager { private Properties _properties; private final String _filename = "my.properties";   public configManager(){ this._properties = new Properties(); File file=new File(this._filename);   if (!file.exists()) { try { file.createNewFile(); } catch (IOException ex) { System.err.println(ex.toString()); } }   try { this._properties.load(new …