Browse Source

Merge branch 'master' of https://git.tk.informatik.tu-darmstadt.de/scm-ssi-hostage-v3

julien.clauter 9 years ago
parent
commit
78edc7c6b5

+ 31 - 11
res/layout/fragment_record_detail.xml

@@ -1,10 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
 
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
-            android:layout_width="match_parent"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="match_parent"
+    >
+<ScrollView android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:id="@+id/scrollView"
-            android:fillViewport="true">
+            android:fillViewport="true" android:layout_above="@+id/linearLayout">
 
 	<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 				  android:orientation="vertical"
@@ -159,14 +162,31 @@
 				android:layout_marginTop="10dp"
 				android:layout_marginBottom="20dp"/>
 
-	</LinearLayout>
-
 
-		<Button android:layout_width="wrap_content" android:layout_height="wrap_content"
-				android:text="@string/delete" android:id="@+id/record_delete_button"
-				android:layout_gravity="center_horizontal" android:layout_weight="0"
-				android:layout_margin="8dp" android:background="@color/holo_red"
-				android:textColor="@android:color/white"/>
+	</LinearLayout>
 
 	</LinearLayout>
-</ScrollView>
+</ScrollView>
+<RelativeLayout
+    style="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"
+    android:orientation="horizontal"
+    android:layout_width="fill_parent"
+    android:layout_height="wrap_content"
+    android:alpha="0.8"
+    android:id="@+id/linearLayout"
+    android:layout_alignParentBottom="true" android:layout_alignParentLeft="true"
+    android:layout_alignParentStart="true">
+
+    <ImageButton
+        style="@android:style/Widget.DeviceDefault.ActionButton.Overflow"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:id="@+id/DeleteButton"
+        android:src="@drawable/ic_action_discard"
+        android:layout_gravity="right"
+        android:layout_alignParentRight="true"
+        android:layout_alignParentTop="true"
+        android:layout_toLeftOf="@+id/FilterButton"/>
+
+</RelativeLayout>
+</RelativeLayout>

+ 1 - 1
res/values-de/arrays.xml

@@ -3,7 +3,7 @@
 
     <string-array name="format">
         <item>Standard</item>
-        <item>TraCINg JSON</item>
+        <item>JSON</item>
     </string-array>
 
     <string-array name="delete_criteria">

+ 19 - 1
res/values-de/strings.xml

@@ -235,4 +235,22 @@
     <string name="pref_sync_countries_desc">Nur Angriffdaten von diesen Ländern herunterladen</string>
     <string name="pref_sync_countries">Länder</string>
     <string name="pref_download_server">Download server</string>
-</resources>
+    <string name="honeypot_past_threat">Sieht nicht sicher aus...</string>
+    <string name="honeypot_not_monitoring">Zzz...</string>
+    <string name="honeypot_no_threat">Sieht sicher aus!</string>
+    <string name="honeypot_live_threat">Wir werden angegriffen!!!</string>
+    <string name="help_me">Hilfe!</string>
+    <string name="install_porthack">Portbinder installieren</string>
+    <string name="iptables_available">Iptables verfügbar</string>
+    <string name="network_not_connected_msg">Sie sind mit keinem Netzwerk verbunden. \n\nBitte verbinden sie sich zuerst mit einem Netzwerk, bevor sie HosTaGe starten.</string>
+    <string name="no_thanks">Nein, danke.</string>
+    <string name="not_rooted">Ihr Smartphone hat keine root Rechte. Um den vollen Funktionsumfang zu nutzen, benötigen sie root Rechte.</string>
+    <string name="portbinder_website">Website besuchen</string>
+    <string name="pref_portscan_timeout_summary"></string>
+    <string name="record_details_confirm_delete">Wollen sie diesen Angriff wirklich löschen?</string>
+    <string name="pref_location_retries_summary">Maximale Anzahl an Versuchen</string>
+    <string name="pref_max_connections_summary">Maximale Anzahl an Gleichzeitigen Verbindungen pro Protokol</string>
+    <string name="subnet_mask">Subnetzmaske</string>
+    <string name="uninstall_porthack">Portbinder deinstallieren</string>
+    <string name="porthack_explanation"><![CDATA[<h1>Portbinder</h1> <p>Um Protokolle mit Ports unter 1024 zu nutzen, benötigt ihr Smartphone root Rechte. Standartmäßig läuft HosTaGe nicht mit root Rechten. Deswegen wird ein kleines Programm mit dem Namen Portbinder benötigt. Dieses öffnet einen Socket und gibt diesen an die HosTaGe App weiter.</p> <p>Eine alternative Möglichkeit ist, diese Ports umzuleiten auf höhere Ports. Unter Android ist dies möglich mit iptables. Wenn iptables auf ihrem Smartphone unterstützt werden, dann ist der Portbinder nicht nötig.</p>]]></string>
+</resources>

+ 1 - 1
res/values/arrays.xml

@@ -3,7 +3,7 @@
 
     <string-array name="format">
         <item>Plaintext</item>
-        <item>TraCINg JSON</item>
+        <item>JSON</item>
     </string-array>
     
     <string-array name="delete_criteria">

+ 3 - 2
src/de/tudarmstadt/informatik/hostage/ui/fragment/RecordDetailFragment.java

@@ -15,6 +15,7 @@ import android.view.MotionEvent;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.Button;
+import android.widget.ImageButton;
 import android.widget.LinearLayout;
 import android.widget.ScrollView;
 import android.widget.TextView;
@@ -59,7 +60,7 @@ public class RecordDetailFragment extends UpNavigatibleFragment {
 	private TextView mRecordDetailsTextBssid;
 	private TextView mRecordDetailsTextRemoteip;
 	private TextView mRecordDetailsTextProtocol;
-	private Button mRecordDeleteButton;
+	private ImageButton mRecordDeleteButton;
 
 	/**
 	 * Sets the record of which the details should be displayed
@@ -134,7 +135,7 @@ public class RecordDetailFragment extends UpNavigatibleFragment {
 		mRecordDetailsTextBssid = (TextView) view.findViewById(R.id.record_details_text_bssid);
 		mRecordDetailsTextRemoteip = (TextView) view.findViewById(R.id.record_details_text_remoteip);
 		mRecordDetailsTextProtocol = (TextView) view.findViewById(R.id.record_details_text_protocol);
-		mRecordDeleteButton = (Button) view.findViewById(R.id.record_delete_button);
+		mRecordDeleteButton = (ImageButton) view.findViewById(R.id.DeleteButton);
 	}