AntiMitm class
Check if the device is connected to a proxy.
Constructors
- AntiMitm()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isNetworkBlocked → bool
-
Check if network connections are currently blocked
no setter
Static Methods
-
blockAllConnections(
) → void - Block all network connections to prevent MITM attacks This is a security measure that can be used when suspicious proxy activity is detected
-
isConnectedToProxy(
) → Future< bool> - This class is used to check if the device is connected to a proxy.
-
isConnectedToSensitiveProxy(
) → Future< bool> - This class is used to check if the device is connected to a sensitive proxy, which using to capture request from your app.
-
isLocalCaptureIP(
String input) → bool - Check if the given IP address or hostname is a local capture IP.
-
performSecurityCheck(
{bool autoBlock = false}) → Future< bool> - Comprehensive security check and automatic protection Returns true if the device is safe, false if protection was activated
-
restoreConnections(
) → void - Restore normal network connections Call this after the security threat has been resolved