Skip to content

Instantly share code, notes, and snippets.

@JonCooperWorks
Created March 12, 2018 19:44
Show Gist options
  • Save JonCooperWorks/005171c9b9841beb1aba2ad370a8568d to your computer and use it in GitHub Desktop.
Save JonCooperWorks/005171c9b9841beb1aba2ad370a8568d to your computer and use it in GitHub Desktop.
transactions := make(chan plugins.HTTPTransaction)
// Process all the plugin arguments.
for plugin, arguments := range installedPlugins {
go plugin.ProcessTransactions(transactions, arguments)
}
for {
conn, err := server.Accept()
if err != nil {
log.Println("Error when accepting request,", err.Error())
continue
}
go phishingProxy.HandleConnection(conn, transactions)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment