title: Python Stringcompare
body: <p>I would like to use wp_scan to scan my wordpress website for new plugins.
  I want to have a python script that show me everyday </p>
  
  <ul>
  <li>a list of vulnerable plugins </li>
  <li>a list of new plugins.</li>
  </ul>
  
  <p>To write a parser which give me only the vulnerable plugins of the output is not complicate. But how I can write a parser (or in which way) so that I get only a list of new plugins. </p>
  
  <p>Example - (source of the example - I modified it a little bit <a href="http://www.blackmoreops.com/2013/10/14/wpscan-and-quick-wordpress-security/" rel="nofollow">http://www.blackmoreops.com/2013/10/14/wpscan-and-quick-wordpress-security/</a>).
  First day: </p>
  
  <pre><code>___________________________________________________
  __          _______   _____
  \ \        / /  __ \ / ____|
  \ \  /\  / /| |__) | (___   ___  __ _ _ __
  \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \
  \  /\  /  | |     ____) | (__| (_| | | | |
  \/  \/   |_|    |_____/ \___|\__,_|_| |_| v2.1rNA
  WordPress Security Scanner by the WPScan Team
  Sponsored by the RandomStorm Open Source Initiative
  _____________________________________________________
  | URL: http://www.blackmoreops.com/
  | Started on Sun Oct 13 13:39:25 2013
  [31m[!][0m The WordPress 'http://www.blackmoreops.com/readme.html' file exists
  [31m[!][0m Full Path Disclosure (FPD) in 'http://www.blackmoreops.com/wp-includes/rss-functions.php'
  [32m[+][0m XML-RPC Interface available under http://www.blackmoreops.com/xmlrpc.php
  [32m[+][0m WordPress version 3.6.1 identified from meta generator
  [32m[+][0m The WordPress theme in use is twentyten v1.6
  | Name: twentyten v1.6
  | Location: http://www.blackmoreops.com/wp-content/themes/twentyten/
  [32m[+][0m Enumerating plugins from passive detection ...
  2 plugins found :
  | Name: add-to-any v1.2.5
  | Location: http://www.blackmoreops.com/wp-content/plugins/add-to-any/
  | Directory listing enabled: Yes
  | Readme: http://www.blackmoreops.com/wp-content/plugins/add-to-any/README.txt
  | Name: captcha v3.8.4
  | Location: http://www.blackmoreops.com/wp-content/plugins/captcha/
  | Directory listing enabled: Yes
  | Readme: http://www.blackmoreops.com/wp-content/plugins/captcha/readme.txt
  [32m[+] Finished at Sun Oct 13 13:39:51 2013[0m
  [32m[+] Elapsed time: 00:00:26[0m]
  </code></pre>
  
  <p>on the next day:</p>
  
  <pre><code>___________________________________________________
  __          _______   _____
  \ \        / /  __ \ / ____|
  \ \  /\  / /| |__) | (___   ___  __ _ _ __
  \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \
  \  /\  /  | |     ____) | (__| (_| | | | |
  \/  \/   |_|    |_____/ \___|\__,_|_| |_| v2.1rNA
  WordPress Security Scanner by the WPScan Team
  Sponsored by the RandomStorm Open Source Initiative
  _____________________________________________________
  | URL: http://www.blackmoreops.com/
  | Started on Sun Oct 13 13:39:25 2013
  [31m[!][0m The WordPress 'http://www.blackmoreops.com/readme.html' file exists
  [31m[!][0m Full Path Disclosure (FPD) in 'http://www.blackmoreops.com/wp-includes/rss-functions.php'
  [32m[+][0m XML-RPC Interface available under http://www.blackmoreops.com/xmlrpc.php
  [32m[+][0m WordPress version 3.6.1 identified from meta generator
  [32m[+][0m The WordPress theme in use is twentyten v1.6
  | Name: twentyten v1.6
  | Location: http://www.blackmoreops.com/wp-content/themes/twentyten/
  [32m[+][0m Enumerating plugins from passive detection ...
  3 plugins found :
  | Name: add-to-any v1.2.5
  | Location: http://www.blackmoreops.com/wp-content/plugins/add-to-any/
  | Directory listing enabled: Yes
  | Readme: http://www.blackmoreops.com/wp-content/plugins/add-to-any/README.txt
  | Name: captcha v3.8.4
  | Location: http://www.blackmoreops.com/wp-content/plugins/captcha/
  | Directory listing enabled: Yes
  | Readme: http://www.blackmoreops.com/wp-content/plugins/captcha/readme.txt
  | Name: google-analyticator v6.4.5
  | Location: http://www.blackmoreops.com/wp-content/plugins/google-analyticator/
  | Directory listing enabled: Yes
  | Readme: http://www.blackmoreops.com/wp-content/plugins/google-analyticator/readme.txt
  [32m[+] Finished at Sun Oct 14 13:39:51 2013[0m
  [32m[+] Elapsed time: 00:00:26[0m]
  </code></pre>
  
  <p>Should I separate the string always after a [+] and compare them all 
  (I don't know how the list of the output is sorted - I think alpahbetic - so I can't get only the last plugins and say this are my new plugins)? Is that efficient? Making the problem simple:</p>
  
  <p>first string:</p>
  
  <pre><code>Hallo
  Pet
  Me
  </code></pre>
  
  <p>second string:</p>
  
  <pre><code>Hallo
  World
  Pet
  Me
  </code></pre>
  
  <p>How I find out what is the new word in a efficient way?</p>