diff --git a/images/caido.png b/images/caido.png new file mode 100644 index 0000000..28557c2 Binary files /dev/null and b/images/caido.png differ diff --git a/scripts/erb.rb b/scripts/erb.rb index 6882596..46cbc6e 100644 --- a/scripts/erb.rb +++ b/scripts/erb.rb @@ -19,6 +19,8 @@ def generate_badge array badge = badge + "![chrome](/images/chrome.png)" when 'burpsuite' badge = badge + "![burp](/images/burp.png)" + when 'caido' + badge = badge + "![caido](/images/caido.png)" when 'zap' badge = badge + "![zap](/images/zap.png)" end @@ -55,9 +57,9 @@ template = %q{

- + - + A collection of awesome tools used by Web hackers. Happy hacking , Happy bug-hunting @@ -72,7 +74,7 @@ A collection of awesome tools used by Web hackers. Happy hacking , Happy bug-hun - [Bookmarklets](#bookmarklets) - [Browser Addons](#browser-addons) - [Burp and ZAP Addons](#burpsuite-and-zap-addons) -- [Contribute](CONTRIBUTING.md) +- [Contribute](CONTRIBUTING.md) - [Thanks to contributor](#thanks-to-contributor) ## Weapons @@ -131,7 +133,7 @@ Dir.entries("./weapons/").each do | name | data = YAML.load(File.open("./weapons/#{name}")) if data['type'] != "" && data['type'] != nil - if weapons_obj[data['type'].downcase] != nil + if weapons_obj[data['type'].downcase] != nil weapons_obj[data['type'].downcase].push data else weapons_obj[data['type'].downcase] = [] @@ -140,7 +142,7 @@ Dir.entries("./weapons/").each do | name | else weapons_obj['etc'].push data end - rescue => e + rescue => e puts e end end @@ -169,10 +171,10 @@ weapons.each do | data | end rescue end - + popularity = "" - if data['url'].length > 0 + if data['url'].length > 0 name = "[#{name}](#{data['url']})" end @@ -182,7 +184,7 @@ weapons.each do | data | end badge = generate_badge(data['platform']) line = "|#{data['type']}|#{name}|#{data['description']}|#{popularity}|#{temp_tags.join ' '}|#{badge}#{lang_badge}|" - case data['category'].downcase + case data['category'].downcase when 'tool' tools = tools + line + "\n" when 'tool-addon' @@ -198,7 +200,7 @@ weapons.each do | data | tmp_lang = data['lang'] tmp_tags = data['tags'] - if tmp_tags != nil + if tmp_tags != nil tmp_tags.each do |t| if categorize_tags[t] == nil categorize_tags[t] = line + "\n" @@ -207,16 +209,16 @@ weapons.each do | data | end end end - + if tmp_lang != nil - if categorize_langs[tmp_lang] == nil + if categorize_langs[tmp_lang] == nil categorize_langs[tmp_lang] = line + "\n" else categorize_langs[tmp_lang] = categorize_langs[tmp_lang] + line + "\n" end end - rescue => e + rescue => e puts e end end @@ -236,11 +238,11 @@ categorize_tags.each do |key,value| end categorize_langs.each do |key,value| - if key != nil && key != "" + if key != nil && key != "" @ct_lang = key @ct_head = head + "\n" @ct_data = value lang_markdown = ERB.new(categorize_template_langs, trim_mode: "%<>") File.write "./categorize/langs/#{@ct_lang}.md", lang_markdown.result end -end \ No newline at end of file +end