checkForWatch()

From Hack Wars Wiki

Jump to: navigation, search


Function information for checkForWatch()
Function checkForWatch()
API Attacking
Cost $2,000
Level 50
CPU Usage 5
Description Returns a boolean stating whether or not a watch is observing the port being attacked.


Attack Example

checkForWatch() can be used in attack scripts to cancel your attack if the port in question is being observed.

if(checkForWatch() == true){
  cancelAttack();
}

This would automatically cancel the attack if the target port is being watched. To improve this script you could use message() or logMessage() to inform the attacker that the script has been cancelled because of a watch.

Personal tools