mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-12-19 12:44:28 -05:00
Update migrate script
This commit is contained in:
parent
de533b951c
commit
3d2390e48b
@ -20,7 +20,8 @@ def get_urls str
|
|||||||
return URI.extract(str).uniq
|
return URI.extract(str).uniq
|
||||||
end
|
end
|
||||||
|
|
||||||
file = File.read('./data.json')
|
def migrate jsonfile
|
||||||
|
file = File.read(jsonfile)
|
||||||
data_hash = JSON.parse(file)
|
data_hash = JSON.parse(file)
|
||||||
|
|
||||||
data_hash.each do | name, obj |
|
data_hash.each do | name, obj |
|
||||||
@ -45,3 +46,9 @@ data_hash.each do | name, obj |
|
|||||||
puts filename
|
puts filename
|
||||||
#File.write("./data/#{filename}", yaml_data)
|
#File.write("./data/#{filename}", yaml_data)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
migrate './data.json'
|
||||||
|
migrate './Bookmarklets/data.json'
|
||||||
|
migrate './Browser Extensions/data.json'
|
||||||
|
migrate './Burp and ZAP Extensions/data.json'
|
Loading…
Reference in New Issue
Block a user