Skip to content

Commit

Permalink
Merge pull request #153 from edoardottt/devel
Browse files Browse the repository at this point in the history
v1.3.1
  • Loading branch information
edoardottt authored Nov 20, 2024
2 parents 19b45e3 + 91a31e7 commit df27163
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions pkg/enumeration/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func LookupDNS(domain string, outputFileJSON, outputFileHTML, outputFileTXT stri

for _, ip := range ips {
if !plain {
fmt.Printf("[+]FOUND %s IN A: ", domain)
fmt.Print("A: ")
color.Green("%s\n", ip.String())
} else {
fmt.Printf("%s\n", ip.String())
Expand All @@ -67,7 +67,7 @@ func LookupDNS(domain string, outputFileJSON, outputFileHTML, outputFileTXT stri
cname, _ := net.LookupCNAME(domain)

if !plain {
fmt.Printf("[+]FOUND %s IN CNAME: ", domain)
fmt.Print("CNAME: ")
color.Green("%s\n", cname)
} else {
fmt.Printf("%s\n", cname)
Expand All @@ -90,7 +90,7 @@ func LookupDNS(domain string, outputFileJSON, outputFileHTML, outputFileTXT stri

for _, nsRecord := range nameserver {
if !plain {
fmt.Printf("[+]FOUND %s IN NS: ", domain)
fmt.Print("NS: ")
color.Green("%s\n", nsRecord.Host)
} else {
fmt.Printf("%s\n", nsRecord.Host)
Expand All @@ -114,7 +114,7 @@ func LookupDNS(domain string, outputFileJSON, outputFileHTML, outputFileTXT stri

for _, mxRecord := range mxrecords {
if !plain {
fmt.Printf("[+]FOUND %s IN MX: ", domain)
fmt.Print("MX: ")
color.Green("%s %v\n", mxRecord.Host, mxRecord.Pref)
} else {
fmt.Printf("%s %v\n", mxRecord.Host, mxRecord.Pref)
Expand Down Expand Up @@ -144,7 +144,7 @@ func LookupDNS(domain string, outputFileJSON, outputFileHTML, outputFileTXT stri

for _, srv := range srvResults {
if !plain {
fmt.Printf("[+]FOUND %s IN SRV: ", domain)
fmt.Print("SRV: ")
color.Green("%v:%v:%d:%d\n", srv.Target, srv.Port, srv.Priority, srv.Weight)
} else {
fmt.Printf("%v:%v:%d:%d\n", srv.Target, srv.Port, srv.Priority, srv.Weight)
Expand All @@ -167,7 +167,7 @@ func LookupDNS(domain string, outputFileJSON, outputFileHTML, outputFileTXT stri
txtrecords, _ := net.LookupTXT(domain)
for _, txt := range txtrecords {
if !plain {
fmt.Printf("[+]FOUND %s IN TXT: ", domain)
fmt.Print("TXT: ")
color.Green("%s\n", txt)
} else {
fmt.Printf("%s\n", txt)
Expand Down
2 changes: 1 addition & 1 deletion pkg/enumeration/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func AsyncPort(portsArray []int, portsArrayBool bool, startingPort int, endingPo
if resp {
if !plain {
fmt.Fprint(os.Stdout, "\r")
fmt.Printf("[+]FOUND: %s ", host)
fmt.Printf("%s ", host)
color.Green("%s\n", portStr)
} else {
fmt.Printf("%s:%s\n", host, portStr)
Expand Down
4 changes: 2 additions & 2 deletions pkg/output/dirs.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func PrintDirs(dirs map[string]Asset, ignore []string, outputFileJSON, outputFil
if !plain {
if string(resp[0]) == "2" || string(resp[0]) == "3" {
fmt.Fprint(os.Stdout, "\r")
fmt.Printf("[+]FOUND: %s ", domain)
fmt.Printf("%s ", domain)
color.Green("%s\n", resp)

if outputFileJSON != "" {
Expand All @@ -69,7 +69,7 @@ func PrintDirs(dirs map[string]Asset, ignore []string, outputFileJSON, outputFil
}
} else if (resp[:3] != "404") || string(resp[0]) == "5" {
fmt.Fprint(os.Stdout, "\r")
fmt.Printf("[+]FOUND: %s ", domain)
fmt.Printf("%s ", domain)
color.Red("%s\n", resp)

if outputFileJSON != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/output/subs.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func PrintSubs(subs map[string]Asset, ignore []string, outputFileJSON, outputFil

if resp == "" || resp[:3] != "404" {
subDomainFound := urlUtils.CleanProtocol(domain)
fmt.Printf("[+]FOUND: %s ", subDomainFound)
fmt.Printf("%s ", subDomainFound)

if resp == "" || string(resp[0]) == "2" {
if outputFileJSON != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/output/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ along with this program. If not, see http://www.gnu.org/licenses/.

package output

const version = "v1.3.0"
const version = "v1.3.1"
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: scilla
summary: Information Gathering tool
description: |
Information Gathering tool - DNS / Subdomains / Ports / Directories enumeration
version: 1.3.0
version: 1.3.1
grade: stable
base: core20

Expand Down

0 comments on commit df27163

Please sign in to comment.