Goreport | Python script to collect campaign data
kandi X-RAY | Goreport Summary
kandi X-RAY | Goreport Summary
This script accepts your Gophish campaign ID(s) as a parameter and then collects the campaign results to present the statistics and perform user-agent parsing and geolocation lookups for IP addresses. Goreport generates lists of IP addresses, operating systems, browser types and versions, and locations with counts for the number of times each one was seen throughout the campaign. A note on statistics: Goreport will report the total number of events and the number of email recipients that participated in each event. In other words, Goreport will show how many times Gophish recorded a "Clicked Link" event and how many recipients clicked a link. These are very different numbers. A campaign sent to 10 people could have 9 Clicked Link events when only 3 recipients clicked a link. Knowing that recipients clicked a link or submitted data more than once is valuable information, but make sure you keep the numbers straight.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse the given options
- Collect all the information about the campaign
- Build a word report name
- Sets column width
- Compare the IP addresses of the given target
- Look up an IP address
- Generate the report
- Print quick statistics
- Get basic information about the current campaign
- Writes a Word report
- Gets address data for Google Maps
- Geocode an IP address
- Process the timeline events
- Process results
- Run campaign results
- Write an xlsx file
- Build the name of the output file
Goreport Key Features
Goreport Examples and Code Snippets
Community Discussions
Trending Discussions on Goreport
QUESTION
I have a Centos 7 server with cPanel and I'm working on a Telegram bot for my business needs. The bot should be able to run a terminal command with os.system or subprocess.Popen, however both options do not work when configured through a webhook + wsgi process.
I tested both with bot.polling method and they worked as a charm, however after I switched to webhook method served by flask and wsgi, both stopped working for me. I have tried the following:
...ANSWER
Answered 2019-Mar-24 at 10:35If you want to run an external script from inside flask, you could use subprocess to run the script from the command line. This is the right solution.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Goreport
Run pip install -r requirements.txt.
Edit/create a Gophish.config configuration file that looks like the one below. Note: The full host URL is required, so provide http://IP:PORT or https://IP:PORT. Be aware of using HTTP vs HTTPS. If you type in the wrong one you'll receive connection errors.
Get your campaign ID(s) by clicking your campaign(s) and referencing the URL(s) (it's the number at the end).
If you want to be able to create Word docx reports, drop a "template.docx" template file into the Goreport directory (more information below in Selecting Report Output).
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page