mirror of
https://github.com/SEPPDROID/JellyCAT.git
synced 2025-10-22 16:04:20 +00:00
Done for tonight, project is becoming to big for "ctrl+z version control"... Start using GIT
This commit is contained in:
54
main.go
Normal file
54
main.go
Normal file
@@ -0,0 +1,54 @@
|
||||
// /\_/|
|
||||
// { ' ' } JellyCAT
|
||||
// \____\
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type JcatDefaults struct {
|
||||
// For Setting defaults
|
||||
Version string
|
||||
Name string
|
||||
HostName string
|
||||
HostIP string
|
||||
}
|
||||
|
||||
var JellyCAT JcatDefaults
|
||||
|
||||
func main() {
|
||||
// Load config file for config struct
|
||||
fmt.Println()
|
||||
fmt.Println("SYS-LOG: Attempting to load the config...")
|
||||
loadConfig()
|
||||
|
||||
// Default information store
|
||||
JellyCAT = JcatDefaults{
|
||||
Version: "0.1.1revB",
|
||||
Name: "JellyCAT Serving stHack",
|
||||
HostName: config.CertName,
|
||||
HostIP: config.HijackIP,
|
||||
}
|
||||
|
||||
// Starting main JellyCAT function
|
||||
fmt.Println()
|
||||
fmt.Println(" JellyCAT", JellyCAT.Version)
|
||||
fmt.Println()
|
||||
|
||||
// DNS Server & Resolver function for hijacking and forwarding DNS requests
|
||||
fmt.Println("SYS-LOG: Attempting to start DNS Server...")
|
||||
dnsResolver()
|
||||
|
||||
// Webserver for serving x and app to the ATV
|
||||
fmt.Println("SYS-LOG: Attempting to start WEB Server...")
|
||||
webServer()
|
||||
|
||||
// App main for any other server-sided logic
|
||||
fmt.Println("SYS-LOG: Attempting to start JellyCAT-Main...")
|
||||
app()
|
||||
|
||||
// This is working to keep all the functions alive, But is it the correct way? lmk if it's incorrect
|
||||
select {}
|
||||
}
|
Reference in New Issue
Block a user