Browse Source

Created Water-Distribution-Plant profile

Shreyas Srinivasa 9 years ago
parent
commit
7448bec962

BIN
res/drawable-xxxhdpi/ic_profile_water_dist.png


+ 1 - 0
res/values/strings.xml

@@ -247,6 +247,7 @@
     <string name="profile_voip_desc">This profile imitates a VOIP Server by monitoring the SIP service</string>
     <string name="profile_random_desc">This profile monitors services randomly</string>
     <string name="profile_nuclearPower_desc">This profile simulates the Siemens SIMATIC S7 200 PLC working in a Nuclear Power Plant Environment</string>
+    <string name="profile_waterPlant_desc">This profile simulates the PLC infrastructure of a Water Distribution and Treatment Plant </string>
     <string name="profile_paranoid_desc">This profile monitors all available services</string>
     <string name="profile_help_swipe">Swipe from the left or right on an item to expose all available actions for an item</string>
     <string name="profile_monitor_ghost">Monitor GHOST</string>

+ 18 - 3
src/de/tudarmstadt/informatik/hostage/persistence/ProfileManager.java

@@ -650,13 +650,28 @@ public class ProfileManager {
 
 		nuclearPlant.mActiveProtocols.put("MODBUS",true);
 		nuclearPlant.mActiveProtocols.put("HTTP",true);
-		nuclearPlant.mActiveProtocols.put("FTP",true);
-		nuclearPlant.mActiveProtocols.put("TELNET",true);
+		nuclearPlant.mActiveProtocols.put("FTP", true);
+		nuclearPlant.mActiveProtocols.put("TELNET", true);
 		this.addProfile(nuclearPlant,false);
 
 
-		Profile paranoidProfile = new Profile(
+		Profile waterPlant = new Profile(
 				9,
+				"Water Distribution & Treatment Plant",
+				MainActivity.getInstance().getString(R.string.profile_waterPlant_desc),
+				R.drawable.ic_profile_water_dist,
+				false
+		);
+
+		waterPlant.mActiveProtocols.put("MODBUS",true);
+		waterPlant.mActiveProtocols.put("HTTP",true);
+		waterPlant.mActiveProtocols.put("FTP",true);
+		waterPlant.mActiveProtocols.put("TELNET", true);
+		this.addProfile(waterPlant,false);
+
+
+		Profile paranoidProfile = new Profile(
+				10,
 				"Paranoid",
                 MainActivity.getInstance().getString(R.string.profile_paranoid_desc),
 				R.drawable.ic_profile_paranoid,