Skip to content

Cordova plugin to check if a debugger has been attached, can be used to block unauthorized entry to the app

License

Notifications You must be signed in to change notification settings

NeutrinosPlatform/cordova-plugin-check-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-check-debugger npm version

A cordova plugin to check if a debugger is attached to the app or not. Attackers attach a debugger to the app to gain access to the internal workings of the app, even when the app is in release mode. This plugin can be used to check if an unauthorised debugging of the app is in progress.

Install

cordova plugin add cordova-plugin-check-debugger

Usage

checkDebugger.isAttached(function(isDebug) {
    if (isDebug) {
        // isDebug is of string format in Android.
        // Do something aggressive here, like deleting your local storage or closing the app
        console.log('Oh Oh!! Looks like your app is being debugged! Is it you or an intruder?');
    } else {
        // Continue normal logic
        console.log('Phew! Everything seems to be fine');
    }
}, function(err) {
    console.error(err);
});

Supported platforms

  • iOS
  • Android

Credits

License

MIT

About

Cordova plugin to check if a debugger has been attached, can be used to block unauthorized entry to the app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published