@@ -219,12 +219,12 @@ public static bool AddIRCMessage(OS os, List<string> args)
219219 }
220220 public static bool StrikerAttack ( OS os , List < string > args )
221221 {
222- HackerScriptExecuter . runScript ( "DLC/ActionScripts/Hackers/SystemHack.txt" , ( object ) os , ( string ) null , ( string ) null ) ;
222+ HackerScriptExecuter . runScript ( "DLC/ActionScripts/Hackers/SystemHack.txt" , ( object ) os , ( string ) null ) ;
223223 return false ;
224224 }
225225 public static bool ThemeAttack ( OS os , List < string > args )
226226 {
227- HackerScriptExecuter . runScript ( "HackerScripts/ThemeHack.txt" , ( object ) os , ( string ) null , ( string ) null ) ;
227+ HackerScriptExecuter . runScript ( "HackerScripts/ThemeHack.txt" , ( object ) os , ( string ) null ) ;
228228 return false ;
229229 }
230230 public static bool CallThePoliceSoTheyCanTraceYou ( OS os , List < string > args )
@@ -374,8 +374,14 @@ public static bool DeleteWhitelistDLL(OS os, List<string> args)
374374 List < int > FolderPath = new List < int > ( ) ;
375375 FolderPath . Add ( 5 ) ;
376376 Folder folder = computer . files . root . searchForFolder ( "Whitelist" ) ;
377-
378- folder . files . Remove ( folder . files [ 0 ] ) ;
377+ for ( int index = 0 ; index < folder . files . Count ; ++ index )
378+ {
379+ if ( folder . files [ index ] . name . Equals ( "authenticator.dll" ) )
380+ {
381+ folder . files . Remove ( folder . files [ index ] ) ;
382+ os . execute ( "connect " + computer . ip ) ;
383+ }
384+ }
379385 return false ;
380386 }
381387 public static bool ChangeMusic ( OS os , List < string > args )
@@ -593,12 +599,12 @@ public static bool RemoveProxy(OS os, List<string> args)
593599 computer . hasProxy = false ;
594600 return false ;
595601 }
596- /* public static bool RemoveFirewall(OS os, List<string> args)
602+ public static bool RemoveFirewall ( OS os , List < string > args )
597603 {
598604 Computer computer = os . connectedComp ;
599- computer.
605+ computer . firewall = null ;
600606 return false ;
601- } */
607+ }
602608 public static bool AddComputer ( OS os , List < string > args )
603609 {
604610 if ( args . Count < 5 )
@@ -705,7 +711,7 @@ public static bool OxygencraftStorageFaciltyCache(OS os, List<string> args) // D
705711 {
706712 if ( computer . users [ index ] . name . ToLower ( ) . Equals ( "admin" ) ) {
707713 UserDetail user = computer . users [ index ] ;
708- if ( os . username == "oxygencraft" )
714+ if ( os . username == "oxygencraft" || os . username == "oxygencraft2" || os . username == "oxygencraft3" || os . username == "oxygencraft4" )
709715 {
710716 user . known = true ;
711717 }
@@ -775,9 +781,15 @@ public static bool WhitelistBypass(OS os, List<string> args)
775781 {
776782 Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
777783 Folder folder = computer . files . root . searchForFolder ( "Whitelist" ) ;
778- folder . files . Remove ( folder . files [ 1 ] ) ;
779- folder . files . Add ( new FileEntry ( os . thisComputer . ip , "list.txt" ) ) ;
780- os . execute ( "connect " + computer . ip ) ;
784+ for ( int index = 0 ; index < folder . files . Count ; ++ index )
785+ {
786+ if ( folder . files [ index ] . name . Equals ( "list.txt" ) || folder . files [ index ] . name . Equals ( "source.txt" ) )
787+ {
788+ folder . files . Remove ( folder . files [ index ] ) ;
789+ folder . files . Add ( new FileEntry ( os . thisComputer . ip , "list.txt" ) ) ;
790+ os . execute ( "connect " + computer . ip ) ;
791+ }
792+ }
781793 return false ;
782794 }
783795 public static bool SetTheme ( OS os , List < string > args )
@@ -1073,5 +1085,135 @@ public static bool ForkbombProof(OS os, List<string> args)
10731085 os . totalRam = 1000000000 ;
10741086 return false ;
10751087 }
1088+ public static bool ChangeCompIcon ( OS os , List < string > args )
1089+ {
1090+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1091+ computer . icon = args [ 2 ] ;
1092+ return false ;
1093+ }
1094+ public static bool RemoveSongChangerDaemon ( OS os , List < string > args )
1095+ {
1096+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1097+ Daemon daemon = computer . getDaemon ( typeof ( SongChangerDaemon ) ) ;
1098+ computer . daemons . Remove ( daemon ) ;
1099+ return false ;
1100+ }
1101+ public static bool RemoveRicerConnectDaemon ( OS os , List < string > args )
1102+ {
1103+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1104+ Daemon daemon = computer . getDaemon ( typeof ( CustomConnectDisplayDaemon ) ) ;
1105+ computer . daemons . Remove ( daemon ) ;
1106+ return false ;
1107+ }
1108+ public static bool RemoveDLCCreditsDaemon ( OS os , List < string > args )
1109+ {
1110+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1111+ Daemon daemon = computer . getDaemon ( typeof ( DLCCreditsDaemon ) ) ;
1112+ computer . daemons . Remove ( daemon ) ;
1113+ return false ;
1114+ }
1115+ public static bool RemoveIRCDaemon ( OS os , List < string > args )
1116+ {
1117+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1118+ Daemon daemon = computer . getDaemon ( typeof ( IRCDaemon ) ) ;
1119+ computer . daemons . Remove ( daemon ) ;
1120+ return false ;
1121+ }
1122+ public static bool RemoveISPDaemon ( OS os , List < string > args )
1123+ {
1124+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1125+ Daemon daemon = computer . getDaemon ( typeof ( ISPDaemon ) ) ;
1126+ computer . daemons . Remove ( daemon ) ;
1127+ return false ;
1128+ }
1129+ public static bool ForkbombVirus ( OS os , List < string > args ) // Bugged
1130+ {
1131+ for ( int index = 1 ; index < os . netMap . nodes . Count ; ++ index )
1132+ os . netMap . nodes [ index ] . crash ( os . thisComputer . ip ) ;
1133+
1134+
1135+
1136+ return false ;
1137+ }
1138+ public static bool InstallInviolabilty ( OS os , List < string > args )
1139+ {
1140+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1141+ computer . portsNeededForCrack = 9999999 ;
1142+ return false ;
1143+ }
1144+ public static bool RemoveAllDaemons ( OS os , List < string > args )
1145+ {
1146+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1147+ computer . daemons . Clear ( ) ;
1148+ return false ;
1149+ }
1150+ public static bool ShowIPNamesAndID ( OS os , List < string > args )
1151+ {
1152+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1153+ os . write ( "ID: " + computer . idName ) ;
1154+ os . write ( "Name: " + computer . name ) ;
1155+ os . write ( "IP: " + computer . ip ) ;
1156+ return false ;
1157+ }
1158+ public static bool SummonDebugModDaemonComp ( OS os , List < string > args )
1159+ {
1160+ Computer computer = new Computer ( "DebugMod Comp" , NetworkMap . generateRandomIP ( ) , os . netMap . getRandomPosition ( ) , 50000 , 2 , os ) ;
1161+ computer . idName = "debugMod" ;
1162+ os . netMap . nodes . Add ( computer ) ;
1163+ Dictionary < string , string > dict = new Dictionary < string , string > ( ) ;
1164+ Daemon daemon = Pathfinder . Daemon . Instance . CreateInstance ( "DebugModDaemon" , computer , dict ) ;
1165+ //computer.daemons.Add(daemon);
1166+ os . execute ( "connect " + computer . ip ) ;
1167+ return false ;
1168+ }
1169+ public static bool ChangeAdmin ( OS os , List < string > args )
1170+ {
1171+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1172+ if ( args [ 2 ] == "basic" )
1173+ {
1174+ computer . admin = new BasicAdministrator ( ) ;
1175+ } else if ( args [ 2 ] == "fastbasic" )
1176+ {
1177+ computer . admin = new FastBasicAdministrator ( ) ;
1178+ } else if ( args [ 2 ] == "fastprogress" )
1179+ {
1180+ computer . admin = new FastProgressOnlyAdministrator ( ) ;
1181+ } else if ( args [ 2 ] == "alwaysactive" )
1182+ {
1183+ computer . admin = new AlwaysActiveAdmin ( ) ;
1184+ } else if ( args [ 2 ] == "none" )
1185+ {
1186+ computer . admin = null ;
1187+ }
1188+ else
1189+ {
1190+ os . write ( "Usage: changeAdmin (IDORIPORName) (Admin)" ) ;
1191+ os . write ( "Valid options: basic,fastbasic,fastprogress,alwaysactive,none" ) ;
1192+ }
1193+ return false ;
1194+ }
1195+ public static bool ViewAdmin ( OS os , List < string > args )
1196+ {
1197+ Computer computer = Programs . getComputer ( os , args [ 1 ] ) ;
1198+ if ( computer . admin == new BasicAdministrator ( ) )
1199+ {
1200+ os . write ( "Basic Admin" ) ;
1201+ } else if ( computer . admin == new FastBasicAdministrator ( ) )
1202+ {
1203+ os . write ( "Fast Basic Admin" ) ;
1204+ } else if ( computer . admin == new FastProgressOnlyAdministrator ( ) )
1205+ {
1206+ os . write ( "Fast Progress Admin" ) ;
1207+ } else if ( computer . admin == new AlwaysActiveAdmin ( ) )
1208+ {
1209+ os . write ( "Always Active Admin" ) ;
1210+ }
1211+ else
1212+ {
1213+ os . write ( "You may of entered the computer incorrectly or there is no admin for the computer" ) ;
1214+ os . write ( "Usage: viewAdmin (IPORIDORName)" ) ;
1215+ }
1216+ return false ;
1217+ }
10761218 }
10771219}
0 commit comments