Title: Command Line scanning?
Last modified: August 24, 2016

---

# Command Line scanning?

 *  [tariquesani](https://wordpress.org/support/users/tariquesani/)
 * (@tariquesani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/command-line-scanning/)
 * Hi, are there plans to add commandline scanning to the plugin? perhaps using 
   wp-cli…
 * [https://wordpress.org/plugins/gotmls/](https://wordpress.org/plugins/gotmls/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991343)
 * No, sorry, I’m not planning to add a command-line feature.
 * I don’t see any advantages to adding a Third-party command to wp-cli and the 
   interface is already so complicated and browser dependent that I don’t think 
   it would work.
 * Maybe there is simpler solution to your problem though. What is it that you are
   needing to accomplish by utilizing the command-line anyway?
 *  Thread Starter [tariquesani](https://wordpress.org/support/users/tariquesani/)
 * (@tariquesani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991345)
 * Thanks for your answer.
 * Scanning over http is time and resource consuming than needed.
 * Also once a site is infected I would like to have a facility where I can take
   it offline and scan the code via command line.
 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991444)
 * Yes, Scanning over http is more time and resource consuming than at the command
   line. I know there is a need for more command line tools to help server administrators
   fight these infections server wide but My plugin is geared toward helping WordPress
   admins who are dealing with an infected site, usually when the whole job is over
   their head and the command line is out of the questions anyway.
 * If you come up with something that work well for you at the command line hen 
   please share it here. I’m sure there are others like you that are looking for
   the same thing.
 * Aloha, Eli
 *  Thread Starter [tariquesani](https://wordpress.org/support/users/tariquesani/)
 * (@tariquesani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991447)
 * Yes, I have been working on this the main problem I am facing is that the code
   for scanning is deeply intermingled with code for output display. To get to proof
   of concept I am just using more spaghetti if..else code but ultimately it would
   be good to separate business logic from the presentation logic.
 * A reason I want CLI scanning is that once your site is infected opening the admin
   to do stuff can make it worse. CLI is a bit more isolated.
 *  [spoulson](https://wordpress.org/support/users/spoulson/)
 * (@spoulson)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991551)
 * I agree with tariquesani. A malware scanner does not need to be a plugin. If 
   I could run a scanner at CLI manually or via cron, I can configure log files 
   and email notifications as I like and I can run it against the database directly.
   Moreover, if WordPress ever becomes compromised, then the plugin may be disabled
   or compromised as well.
 *  Plugin Author [Eli](https://wordpress.org/support/users/scheeeli/)
 * (@scheeeli)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991552)
 * I have started working on a command-line version that could be scheduled in your
   crontab. It has required a lot of new coding to spin off a variant of my plugin
   that can be run indipendant of WordPress. This new fork is not ready for testing
   yet but I will make a big announcement when it is available becase it has been
   requested a lot and I can see how helpful it would be to server administrators.
 * Thanks for your encouragement 😉
 * Aloha, Eli

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Command Line scanning?’ is closed to new replies.

 * ![](https://ps.w.org/gotmls/assets/icon-256x256.png?rev=1001824)
 * [Anti-Malware Security and Brute-Force Firewall](https://wordpress.org/plugins/gotmls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gotmls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gotmls/)
 * [Active Topics](https://wordpress.org/support/plugin/gotmls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gotmls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gotmls/reviews/)

## Tags

 * [wpcli](https://wordpress.org/support/topic-tag/wpcli/)

 * 6 replies
 * 3 participants
 * Last reply from: [Eli](https://wordpress.org/support/users/scheeeli/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/command-line-scanning/#post-5991552)
 * Status: not resolved