Skip to content

Instantly share code, notes, and snippets.

@pawlos
Created April 23, 2018 10:46
Show Gist options
  • Select an option

  • Save pawlos/dc00cb77694feff41f216615899dfd5c to your computer and use it in GitHub Desktop.

Select an option

Save pawlos/dc00cb77694feff41f216615899dfd5c to your computer and use it in GitHub Desktop.
git log -p -2
[ec2-user@ip-172-31-22-75 KrkAnalyticaHarvester]$ git log -p -2
commit edd5e9665d13ed75e5d425d85835a20442afcc48 (HEAD -> master)
Author: root <root@ip-172-31-31-192.eu-west-1.compute.internal>
Date: Fri Apr 13 09:00:42 2018 +0000
Ooops forgot to remove access keys
diff --git a/KrkAnalyticaHarvester.py b/KrkAnalyticaHarvester.py
index ca40c06..910e4cf 100755
--- a/KrkAnalyticaHarvester.py
+++ b/KrkAnalyticaHarvester.py
@@ -17,10 +17,9 @@ import sys
queue = Queue.Queue()
-
-#keys for reading our bucket's content
-AWS_ACCESS_KEY_ID = 'AKIAJK4WQAVSYATSWLKQ'
-AWS_SECRET_ACCESS_KEY = 'lxRV/uiC4knZQzyIZxSSlQ2xNlZMjo4kn+LnjNiF'
+#Here you have to put your access keys
+AWS_ACCESS_KEY_ID = ''
+AWS_SECRET_ACCESS_KEY = ''
class Settings(object):
commit b15890b7723c12d5b819ac49237872edb8004378
Author: root <root@ip-172-31-31-192.eu-west-1.compute.internal>
Date: Fri Apr 13 08:49:15 2018 +0000
init commit
diff --git a/KrkAnalyticaHarvester.py b/KrkAnalyticaHarvester.py
new file mode 100755
index 0000000..ca40c06
--- /dev/null
+++ b/KrkAnalyticaHarvester.py
@@ -0,0 +1,265 @@
+#!/bin/env python
+'''
+This is the fork of https://github.com/securing/BucketScanner.
+Soon I'll make more changes. Please don't change it without informing me!!!
+
+Mike.Schwarzberg@krkanalytica.com
+'''
+
+from argparse import ArgumentParser
+from threading import Thread, Lock
+import math
+import boto3
+import requests
+import Queue
+import re
+import sys
+
+
+queue = Queue.Queue()
+
+#keys for reading our bucket's content
+AWS_ACCESS_KEY_ID = 'AKIAJK4WQAVSYATSWLKQ'
+AWS_SECRET_ACCESS_KEY = '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'
+
+
+class Settings(object):
+
+ def __init__(self):
+ self._WRITE_TEST_ENABLED = False
+ self._WRITE_TEST_FILE = False
+ self._OUTPUT_FILE = "output.txt"
+ self._MIN_SIZE = 1
+ self._MAX_SIZE = 0
+ self._REGEX = ".*"
+ self._ANONYMOUS_MODE = False
+ self._DISPLAY_SIZE = True
+
+ def set_write_test(self, write_file):
+ self._WRITE_TEST_ENABLED = True
+ self._WRITE_TEST_FILE = write_file
+
+ def set_output_file(self, output_file):
+ self._OUTPUT_FILE = output_file
+
+ def set_minsize(self, min_SIZE):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment