m4dh4v45b1n 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac621bf718d7d18d53ceeca5c9fb9cc761d3fa5e1e8acf18e7527ada6aeb64d8
4
- data.tar.gz: 9811e42117ea21817cd79dd9bf682c2802ba20739eaf2d0d4b9bfb27a53588bb
3
+ metadata.gz: 9ac79cf3d5dc4cbfb295974d1924498d26a62fb4bcc8d372b613a866b94f5d4d
4
+ data.tar.gz: 552fb55fe78cdbf104694000e44f12f43c7e3b15af59997e2df7644410f17080
5
5
  SHA512:
6
- metadata.gz: 447ced475276b94e666415ff58759f3732383f8747a197c4b5c9cb620f651863832904beddab8b3c39d6d29149ff19b33ab441546be53204b88a99a44575a872
7
- data.tar.gz: fecdef0ac6f57a67dbd36b44bedeb4291ee10fef61969fb3b87bd87a63ad6ca17e2b6416943e0d5a58a3b5788af35add572c201cbbe356b53a11337e588d4681
6
+ metadata.gz: 97f7736fca8359dc2ba4183fb1c07a3d7c401a1c3f9c84878e06d0ee0079699020eebf328528a8e0ecf6bc0857c7ee56ae79fc581243dd4b47d5ac2c67f90603
7
+ data.tar.gz: 6df31c772412e410df1465d501a732665501dd763307804656f4fea95eb48ca269ec914882ac52830056b98c33d212d54b20359359fd0f8ae079eb652d65b2c4
data/bin/fuzz-web-dir.rb CHANGED
@@ -19,7 +19,7 @@ Eg: fuzz-web-dir.rb -e php,txt --hc 303,404 https://example.com\n\n"
19
19
  optp.on('-w WORDLIST', "Use custom wordlist. (default:#{FUZZ_WEB_DIR_DICT})") do |w|
20
20
  init.dict = w
21
21
  end
22
- optp.on('-e EXT', "Add extension.Use comma for multiple value. (default:txt,php,html") do |w|
22
+ optp.on('-e EXT', "Add extension.Use comma for multiple value. (default:txt,php,html,xml") do |w|
23
23
  init.ext = w.split(',')
24
24
  end
25
25
  optp.on('-p PAUSE', Float, 'Pause the fuzz for N second.') do |p|
@@ -2,7 +2,9 @@
2
2
 
3
3
  require_relative 'version'
4
4
  require 'resolv'
5
+ require 'net/http'
5
6
  require 'resolv-replace'
7
+ require_relative 'rand-util'
6
8
 
7
9
 
8
10
 
@@ -22,7 +24,7 @@ def wordlist
22
24
  return p+"/gems/m4dh4v45b1n-#{VERSION}/dict/subdomain.txt"
23
25
  end
24
26
  end
25
- puts "enum-subdomain.rb: Unable to deduct default wordlist use -w"
27
+ puts "enum-subdomain.rb: Unable to detuct default wordlist use -w"
26
28
  exit
27
29
  end
28
30
  def cache_subdomain
@@ -122,17 +124,38 @@ class Subdomain_enum
122
124
  end
123
125
  return []
124
126
  end
127
+ def further_checkup
128
+ begin
129
+ req = Net::HTTP::get_response(URI("http://#{@target}"), {"User-Agent":rand_user_agent})
130
+ if req.header["Location"][0,28] == "https://www.hugedomains.com/"
131
+ print "enum-subdomain.rb: It redirect to #{req.header['Location'][0,28]}.The domain is under hugedomains for sale.\nDo you wanna exit ? "
132
+ return true
133
+ end
134
+ rescue => e
135
+ end
136
+ return false
137
+ end
125
138
  def brut
126
139
  already_have = check_cache_domain
127
140
  if @show_cache
128
141
  exit
129
142
  end
130
143
  if Resolv.getaddresses(@target).length == 0
131
- print "enum-subdomain.rb: #{@target}:Unreachable.\nDo you wana exit ? "
144
+ print "enum-subdomain.rb: No Dns records found for #{@target}.\nDo you wana exit ? "
145
+ tmp = STDIN.gets.chomp
146
+ if ["yes", 'y'].include? tmp
147
+ print "\e[1A#{" "*60}\r"
148
+ exit
149
+ end
150
+ print "\e[1A#{" "*60}\r"
151
+ end
152
+ if further_checkup
132
153
  tmp = STDIN.gets.chomp
133
154
  if ["yes", 'y'].include? tmp
155
+ print "\e[1A#{" "*60}\r"
134
156
  exit
135
157
  end
158
+ print "\e[1A#{" "*60}\r"
136
159
  end
137
160
  if !CACHE.nil?
138
161
  @cache_file = File.open(CACHE+"/#{@target}.cache", "a")
@@ -1,2 +1,2 @@
1
1
  # frozen_string_literal: true
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: m4dh4v45b1n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Madhava-mng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-04 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Developed for POC not harm to any one.
13
+ description: ''
14
14
  email:
15
15
  - alformint1@gmail.com
16
16
  executables: