Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
GobiasSomeCoffeeCo committed Aug 12, 2023
1 parent a247c43 commit 6422232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package main

import (
"fmt"

"github.com/GobiasSomeCoffeeCo/gosilent/pkg/syn"
)

func main() {
opts := ParseCLI()

silentscan.SynScan(opts)

fmt.Println("\033[1;94mAll Done!!!\033[0m")
}
7 changes: 2 additions & 5 deletions pkg/syn/syn_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ type ScanOptions struct {
UsePSH bool
UseACK bool
UseURG bool
UseECE bool
UseCWR bool
UseNS bool
UseXMas bool
InterfaceName string
Ports string
Expand Down Expand Up @@ -140,7 +137,7 @@ func (s *scanner) scan(opts *ScanOptions) error {
start := time.Now()
fmt.Println("\033[1;94mStarting GoSilent...\033[0m")

for tcp.DstPort < 65535 {
for tcp.DstPort < 500 {
start = time.Now()

// Give time for the read
Expand Down Expand Up @@ -192,7 +189,7 @@ func (s *scanner) scan(opts *ScanOptions) error {
if net := packet.NetworkLayer(); net == nil {
//log.Printf("packet has no network layer") //
} else if net.NetworkFlow() != ipFlow {
log.Printf("packet does not match our ip src/dst") //
//log.Printf("packet does not match our ip src/dst") //
} else if tcpLayer := packet.Layer(layers.LayerTypeTCP); tcpLayer == nil {
//log.Printf("packet has not tcp layer") //
} else if tcp, ok := tcpLayer.(*layers.TCP); !ok {
Expand Down

0 comments on commit 6422232

Please sign in to comment.