Documentation ¶
Index ¶
- Variables
- func ParsePortsList(data string) (portList []layers.TCPPort, err error)
- type RandomCommand
- func (cmd *RandomCommand) AddBLockToBlacklist(network string)
- func (cmd *RandomCommand) IsIpPublic(ip net.IP) bool
- func (cmd *RandomCommand) ListenForAck(handle *pcap.Handle)
- func (cmd *RandomCommand) RandomPublicIp() net.IP
- func (cmd *RandomCommand) Run() (err error)
- func (cmd *RandomCommand) SendPacket(handle *pcap.Handle, iface *net.Interface, src net.IP, gwMac net.HardwareAddr, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var IPBlacklist = []*net.IPNet{ { IP: net.IP{127, 0, 0, 0}, Mask: net.IPMask{255, 0, 0, 0}, }, { IP: net.IP{0, 0, 0, 0}, Mask: net.IPMask{255, 0, 0, 0}, }, { IP: net.IP{192, 168, 0, 0}, Mask: net.IPMask{255, 255, 0, 0}, }, { IP: net.IP{10, 0, 0, 0}, Mask: net.IPMask{255, 0, 0, 0}, }, { IP: net.IP{172, 16, 0, 0}, Mask: net.IPMask{255, 240, 0, 0}, }, { IP: net.IP{100, 64, 0, 0}, Mask: net.IPMask{255, 192, 0, 0}, }, { IP: net.IP{224, 0, 0, 0}, Mask: net.IPMask{224, 0, 0, 0}, }, }
Functions ¶
func ParsePortsList ¶
CREDIT MENTION : to https://github.com/projectdiscovery/naabu/blob/master/v2/pkg/runner/ports.go#L173
Types ¶
type RandomCommand ¶
type RandomCommand struct { BlacklistFile *os.File `help:"Blacklist file, in CIDR form" short:"b" type:"existingFile"` SourcePort layers.TCPPort `help:"Source port, default is random" default:"0" short:"s"` Ports string `help:"list of target ports" short:"p"` RateLimit int `help:"Max pps" short:"r" default:"1000"` DisableRecommended bool `help:"Disable the recommended blacklist" short:"d"` // contains filtered or unexported fields }
func (*RandomCommand) AddBLockToBlacklist ¶
func (cmd *RandomCommand) AddBLockToBlacklist(network string)
func (*RandomCommand) IsIpPublic ¶
func (cmd *RandomCommand) IsIpPublic(ip net.IP) bool
func (*RandomCommand) ListenForAck ¶
func (cmd *RandomCommand) ListenForAck(handle *pcap.Handle)
I just listen for SYN/ACK on port 16655 and print things
func (*RandomCommand) RandomPublicIp ¶
func (cmd *RandomCommand) RandomPublicIp() net.IP
func (*RandomCommand) Run ¶
func (cmd *RandomCommand) Run() (err error)
func (*RandomCommand) SendPacket ¶
Click to show internal directories.
Click to hide internal directories.