Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-shodan for openSUSE:Factory 
checked in at 2022-10-08 01:25:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-shodan (Old)
 and      /work/SRC/openSUSE:Factory/.python-shodan.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-shodan"

Sat Oct  8 01:25:57 2022 rev:30 rq:1008838 version:1.28.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-shodan/python-shodan.changes      
2022-03-05 14:45:19.451729795 +0100
+++ /work/SRC/openSUSE:Factory/.python-shodan.new.2275/python-shodan.changes    
2022-10-08 01:26:25.998395934 +0200
@@ -1,0 +2,8 @@
+Fri Oct  7 15:35:51 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- Update to version 1.28.0  
+  * Add the ability to whitelist a specific vulnerability in Shodan Monitor 
instead of whitelisting the while IP:port
+  * Show scan ID when scanning without showing results (credit to @seadog007)
+  * Handle bad gateway errors (credit to @yaron-cider)
+
+-------------------------------------------------------------------

Old:
----
  shodan-1.27.0.tar.gz

New:
----
  shodan-1.28.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-shodan.spec ++++++
--- /var/tmp/diff_new_pack.qyXXPy/_old  2022-10-08 01:26:26.498397081 +0200
+++ /var/tmp/diff_new_pack.qyXXPy/_new  2022-10-08 01:26:26.502397090 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{!?license: %global license %doc}
 Name:           python-shodan
-Version:        1.27.0
+Version:        1.28.0
 Release:        0
 Summary:        Python library and command-line utility for Shodan
 License:        MIT

++++++ shodan-1.27.0.tar.gz -> shodan-1.28.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.27.0/CHANGELOG.md 
new/shodan-1.28.0/CHANGELOG.md
--- old/shodan-1.27.0/CHANGELOG.md      2022-02-23 00:00:28.000000000 +0100
+++ new/shodan-1.28.0/CHANGELOG.md      2022-07-09 23:37:51.000000000 +0200
@@ -1,6 +1,13 @@
 CHANGELOG
 =========
 
+1.28.0
+------
+* Add the ability to whitelist a specific vulnerability in Shodan Monitor 
instead of whitelisting the while IP:port
+* Show scan ID when scanning without showing results (credit to @seadog007)
+* Handle bad gateway errors (credit to @yaron-cider)
+
+
 1.27.0
 ------
 * New command: ``shodan alert export`` to save the current network monitoring 
configuration
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.27.0/PKG-INFO new/shodan-1.28.0/PKG-INFO
--- old/shodan-1.27.0/PKG-INFO  2022-02-23 00:00:57.000000000 +0100
+++ new/shodan-1.28.0/PKG-INFO  2022-07-10 00:54:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: shodan
-Version: 1.27.0
+Version: 1.28.0
 Summary: Python library and command-line utility for Shodan 
(https://developer.shodan.io)
 Home-page: https://github.com/achillean/shodan-python
 Author: John Matherly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.27.0/setup.py new/shodan-1.28.0/setup.py
--- old/shodan-1.27.0/setup.py  2022-02-22 23:56:38.000000000 +0100
+++ new/shodan-1.28.0/setup.py  2022-07-09 23:41:53.000000000 +0200
@@ -9,7 +9,7 @@
 
 setup(
     name='shodan',
-    version='1.27.0',
+    version='1.28.0',
     description='Python library and command-line utility for Shodan 
(https://developer.shodan.io)',
     long_description=README,
     long_description_content_type='text/x-rst',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.27.0/shodan/cli/scan.py 
new/shodan-1.28.0/shodan/cli/scan.py
--- old/shodan-1.27.0/shodan/cli/scan.py        2019-12-15 00:21:14.000000000 
+0100
+++ new/shodan-1.28.0/shodan/cli/scan.py        2022-07-09 23:36:17.000000000 
+0200
@@ -157,6 +157,7 @@
 
         # Return immediately
         if wait <= 0:
+            click.echo('Scan ID: {}'.format(scan['id']))
             click.echo('Exiting now, not waiting for results. Use the API or 
website to retrieve the results of the scan.')
         else:
             # Setup an alert to wait for responses
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.27.0/shodan/client.py 
new/shodan-1.28.0/shodan/client.py
--- old/shodan-1.27.0/shodan/client.py  2022-02-22 00:36:09.000000000 +0100
+++ new/shodan-1.28.0/shodan/client.py  2022-07-09 23:41:35.000000000 +0200
@@ -336,6 +336,8 @@
             raise APIError(error)
         elif data.status_code == 403:
             raise APIError('Access denied (403 Forbidden)')
+        elif data.status_code == 502:
+            raise APIError('Bad Gateway (502)')
 
         # Parse the text into JSON
         try:
@@ -719,8 +721,14 @@
         """Disable the given trigger on the alert."""
         return self._request('/shodan/alert/{}/trigger/{}'.format(aid, 
trigger), {}, method='delete')
 
-    def ignore_alert_trigger_notification(self, aid, trigger, ip, port):
+    def ignore_alert_trigger_notification(self, aid, trigger, ip, port, 
vulns=None):
         """Ignore trigger notifications for the provided IP and port."""
+        # The "vulnerable" and "vulnerable_unverified" triggers let you 
specify specific vulnerabilities
+        # to ignore. If a user provides a "vulns" list and specifies on of 
those triggers then we'll use
+        # a different API endpoint.
+        if trigger in ('vulnerable', 'vulnerable_unverified') and vulns and 
isinstance(vulns, list):
+            return 
self._request('/shodan/alert/{}/trigger/{}/ignore/{}:{}/{}'.format(aid, 
trigger, ip, port, ','.join(vulns)), {}, method='put')
+        
         return 
self._request('/shodan/alert/{}/trigger/{}/ignore/{}:{}'.format(aid, trigger, 
ip, port), {}, method='put')
 
     def unignore_alert_trigger_notification(self, aid, trigger, ip, port):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.27.0/shodan.egg-info/PKG-INFO 
new/shodan-1.28.0/shodan.egg-info/PKG-INFO
--- old/shodan-1.27.0/shodan.egg-info/PKG-INFO  2022-02-23 00:00:57.000000000 
+0100
+++ new/shodan-1.28.0/shodan.egg-info/PKG-INFO  2022-07-10 00:54:21.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: shodan
-Version: 1.27.0
+Version: 1.28.0
 Summary: Python library and command-line utility for Shodan 
(https://developer.shodan.io)
 Home-page: https://github.com/achillean/shodan-python
 Author: John Matherly

Reply via email to