2022-08-15 10:39:39 -04:00
|
|
|
require 'erb'
|
2022-08-16 12:11:14 -04:00
|
|
|
require 'yaml'
|
|
|
|
|
2022-08-17 10:05:58 -04:00
|
|
|
def generate_badge array
|
|
|
|
badge = ""
|
|
|
|
array.each { |t|
|
|
|
|
case t
|
|
|
|
when 'linux'
|
2022-08-17 10:15:58 -04:00
|
|
|
badge = badge + "![linux](./images/linux.png)"
|
2022-08-17 10:05:58 -04:00
|
|
|
when 'windows'
|
2022-08-17 10:15:58 -04:00
|
|
|
badge = badge + "![windows](./images/windows.png)"
|
2022-08-17 10:05:58 -04:00
|
|
|
when 'macos'
|
2022-08-17 10:15:58 -04:00
|
|
|
badge = badge + "![macos](./images/apple.png)"
|
2022-08-17 10:05:58 -04:00
|
|
|
when 'firefox'
|
2022-08-17 10:15:58 -04:00
|
|
|
badge = badge + "![firefox](./images/firefox.png)"
|
2022-08-17 10:05:58 -04:00
|
|
|
when 'safari'
|
2022-08-17 10:15:58 -04:00
|
|
|
badge = badge + "![safari](./images/safari.png)"
|
2022-08-17 10:05:58 -04:00
|
|
|
when 'chrome'
|
2022-08-17 10:15:58 -04:00
|
|
|
badge = badge + "![chrome](./images/chrome.png)"
|
2022-08-17 10:27:51 -04:00
|
|
|
when 'burpsuite'
|
|
|
|
badge = badge + "![burp](./images/burp.png)"
|
|
|
|
when 'zap'
|
|
|
|
badge = badge + "![zap](./images/zap.png)"
|
2022-08-17 10:05:58 -04:00
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
return badge
|
2022-08-16 12:11:14 -04:00
|
|
|
end
|
2022-08-15 10:39:39 -04:00
|
|
|
|
|
|
|
template = %q{
|
|
|
|
<h1 align="center">
|
|
|
|
<br>
|
|
|
|
<a href=""><img src="https://user-images.githubusercontent.com/13212227/104400969-9f3d9280-5596-11eb-80f4-864effae95fc.png" alt="" width="500px;"></a>
|
|
|
|
<br>
|
|
|
|
<img src="https://img.shields.io/github/last-commit/hahwul/WebHackersWeapons?style=flat">
|
|
|
|
<img src="https://img.shields.io/badge/PRs-welcome-cyan">
|
|
|
|
<img src="https://github.com/hahwul/WebHackersWeapons/workflows/Build/badge.svg">
|
|
|
|
<a href="https://twitter.com/intent/follow?screen_name=hahwul"><img src="https://img.shields.io/twitter/follow/hahwul?style=flat&logo=twitter"></a>
|
|
|
|
</h1>
|
2022-08-16 07:48:09 -04:00
|
|
|
A collection of awesome tools used by Web hackers. Happy hacking , Happy bug-hunting
|
2022-08-15 10:39:39 -04:00
|
|
|
|
|
|
|
## Family project
|
|
|
|
[![WebHackersWeapons](https://img.shields.io/github/stars/hahwul/WebHackersWeapons?label=WebHackersWeapons)](https://github.com/hahwul/WebHackersWeapons)
|
|
|
|
[![MobileHackersWeapons](https://img.shields.io/github/stars/hahwul/MobileHackersWeapons?label=MobileHackersWeapons)](https://github.com/hahwul/MobileHackersWeapons)
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
- [Weapons](#weapons)
|
2022-08-17 10:30:21 -04:00
|
|
|
- [Tools](#tools)
|
|
|
|
- [Bookmarklets](#bookmarklets)
|
|
|
|
- [Browser Addons](#browser-addons)
|
|
|
|
- [Burp and ZAP Addons](#burpsuite-and-zap-addons)
|
|
|
|
- [Contribute](CONTRIBUTING.md)
|
2022-08-15 10:39:39 -04:00
|
|
|
- [Thanks to contributor](#thanks-to-contributor)
|
|
|
|
|
2022-08-16 07:48:09 -04:00
|
|
|
## Weapons
|
|
|
|
### Tools
|
|
|
|
<%= tools %>
|
2022-08-15 10:39:39 -04:00
|
|
|
|
2022-08-16 07:48:09 -04:00
|
|
|
### Bookmarklets
|
|
|
|
<%= bookmarklets %>
|
|
|
|
|
|
|
|
### Browser Addons
|
|
|
|
<%= browser_addons %>
|
|
|
|
|
|
|
|
### Burpsuite and ZAP Addons
|
2022-08-16 12:11:14 -04:00
|
|
|
<%= tool_addons %>
|
2022-08-15 10:39:39 -04:00
|
|
|
|
|
|
|
## Thanks to (Contributor)
|
|
|
|
I would like to thank everyone who helped with this project 👍😎
|
2022-08-16 07:49:10 -04:00
|
|
|
![](/images/CONTRIBUTORS.svg)
|
2022-08-15 10:39:39 -04:00
|
|
|
|
|
|
|
}.gsub(/^ /, '')
|
2022-08-16 12:11:14 -04:00
|
|
|
|
|
|
|
head = "| Type | Name | Description | Badges | Popularity |\n"
|
|
|
|
head = head + "| --- | --- | --- | --- | --- |"
|
|
|
|
tools = head + "\n"
|
|
|
|
bookmarklets = head + "\n"
|
|
|
|
browser_addons = head + "\n"
|
|
|
|
tool_addons = head + "\n"
|
|
|
|
|
|
|
|
Dir.entries("./weapons/").each do | name |
|
2022-08-17 10:33:50 -04:00
|
|
|
if name != '.' && name != '..'
|
|
|
|
begin
|
|
|
|
data = YAML.load(File.open("./weapons/#{name}"))
|
|
|
|
name = data['name']
|
|
|
|
popularity = "x"
|
2022-08-16 12:11:14 -04:00
|
|
|
|
2022-08-17 10:33:50 -04:00
|
|
|
if data['url'].length > 0
|
|
|
|
name = "[#{name}](#{data['url']})"
|
|
|
|
end
|
2022-08-16 12:11:14 -04:00
|
|
|
|
2022-08-17 10:33:50 -04:00
|
|
|
if data['url'].include? "github.com"
|
|
|
|
split_result = data['url'].split "//github.com/"
|
|
|
|
popularity = "![](https://img.shields.io/github/stars/#{split_result[1]})"
|
|
|
|
end
|
|
|
|
badge = generate_badge(data['platform'])
|
|
|
|
line = "|#{data['types']}|#{name}|#{data['description']}|#{badge}|#{popularity}|"
|
|
|
|
case data['category']
|
|
|
|
when 'tool'
|
|
|
|
tools = tools + line + "\n"
|
|
|
|
when 'tool-addon'
|
|
|
|
tool_addons = tool_addons + line + "\n"
|
|
|
|
when 'browser-addon'
|
|
|
|
browser_addons = browser_addons + line + "\n"
|
|
|
|
when 'bookmarklet'
|
|
|
|
bookmarklets = bookmarklets + line + "\n"
|
|
|
|
else
|
|
|
|
puts name
|
|
|
|
end
|
|
|
|
rescue => e
|
|
|
|
puts e
|
2022-08-16 12:11:14 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-08-15 10:39:39 -04:00
|
|
|
|
|
|
|
markdown = ERB.new(template, trim_mode: "%<>")
|
2022-08-17 10:15:01 -04:00
|
|
|
#puts markdown.result
|
|
|
|
File.write './README.md', markdown.result
|