Skip to content

Commit

Permalink
Update info.go
Browse files Browse the repository at this point in the history
  • Loading branch information
R4yGM committed Mar 23, 2020
1 parent 1912bdd commit 5bb3045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions info/info.go
Expand Up @@ -9,15 +9,15 @@ import (
var ver = "0.1"
var owner = "R4yan"
var github = "https://github.com/R4yGM/netscanner"
var help = "\nnetscanner 0.1\n \nUsage: netscanner <command>\n\nCommands:\n\n sp,scanport - scan a singular port: usage sp,scanport <protocol> <hostname> <port> (ex. scanport tcp 127.0.01 80)\n in,initscan - scan the first 1023 ports: usage in,initscan <protocol> <hostname> <savefilebool>(ex. initscan udp 127.0.0.1 false)\n cs,completescan - scan all the ports: usage cs,completescan <protocol> <hostname> <savefilebool>(ex. completescan tcp 127.0.0.1 true)\n sft,scanfromto - scann the ports from a port given to another port given: usage sft,scanfromto <protocol> <hostname> <startport> <endport> <savefile>(ex. sft tcp 127.0.0.1 80 443 true)\n h,help - shows this text\n v,version - show the current version of the program\n info,information - shows some information about the program\n"

var help = "\nnetscanner 0.1 : TCP/UDP port scanner\n \nUsage: netscanner <command>\n\nCommands:\n\n sp,scanport - scan a singular port: usage sp,scanport <protocol> <hostname> <port> (ex. scanport tcp 127.0.01 80)\n in,initscan - scan the first 1023 ports: usage in,initscan <protocol> <hostname> <savefilebool>(ex. initscan udp 127.0.0.1 false)\n cs,completescan - scan all the ports: usage cs,completescan <protocol> <hostname> <savefilebool>(ex. completescan tcp 127.0.0.1 true)\n sft,scanfromto - scan the ports from a port given to another port given: usage sft,scanfromto <protocol> <hostname> <startport> <endport> <savefile>(ex. sft tcp 127.0.0.1 80 443 true)\n h,help - shows this text\n v,version - show the current version of the program\n info,information - shows some information about the program\n msp,maskscanport - scan a port of all the IPs in Subnet: usage msp,maskscanport <protocol> <hostname> <port> <savefilebool>(ex. msp tcp 127.0.0.1/24 true)\n"
type Info struct {
Version string `json:"version"`
Owner string `json:"owner"`
Github string `json:"github"`
Help string `json:"help"`
}


func Version()(tex string){
// file, _ := ioutil.ReadFile("info.json")

Expand Down

0 comments on commit 5bb3045

Please sign in to comment.