Reversed tabs
Browse files
app.py
CHANGED
@@ -98,31 +98,8 @@ thedropgears.com"""
|
|
98 |
|
99 |
|
100 |
with gr.Blocks() as aeon:
|
101 |
-
with gr.Tab(label="Mix domains and IPs"):
|
102 |
-
with gr.Row():
|
103 |
-
with gr.Column():
|
104 |
-
ip_subclasses_raw = gr.Textbox(label="IP Subclasses plain text", \
|
105 |
-
value="""192.168.1.1/24""", lines=2)
|
106 |
-
with gr.Column():
|
107 |
-
num_of_ips = gr.Number(label="Number of IPs per /24", value=4)
|
108 |
-
with gr.Row():
|
109 |
-
domains_raw = gr.Textbox(label="Domains", value="gogu.com\nasd.com\ndsa.com\ngigi.com")
|
110 |
-
greet_btn = gr.Button("Compute IPs")
|
111 |
-
output_ips = gr.Textbox(label="List of IPs")
|
112 |
|
113 |
-
|
114 |
-
outputs=output_ips)
|
115 |
-
|
116 |
-
|
117 |
-
output_mix = gr.Code(label="Mixed IPs and Domains")
|
118 |
-
|
119 |
-
with gr.Row():
|
120 |
-
with gr.Column():
|
121 |
-
reset_btn = gr.ClearButton(label="Reset", components=[ip_subclasses_raw, domains_raw])
|
122 |
-
with gr.Column():
|
123 |
-
mix_btn = gr.Button("Mix IPs and Domains")
|
124 |
-
mix_btn.click(fn=mix, inputs=[domains_raw, output_ips, num_of_ips],\
|
125 |
-
outputs=output_mix)
|
126 |
with gr.Tab(label="SWAKS"):
|
127 |
with gr.Row():
|
128 |
with gr.Column():
|
@@ -155,6 +132,33 @@ with gr.Blocks() as aeon:
|
|
155 |
- There will two types of files: `bune_IP_addr.txt` and `blocate_IP_addr.txt`
|
156 |
- To get all the good IPs run: `cat bune*`
|
157 |
""")
|
158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
aeon.launch(auth=(USER, PASS))
|
|
|
98 |
|
99 |
|
100 |
with gr.Blocks() as aeon:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
with gr.Tab(label="SWAKS"):
|
104 |
with gr.Row():
|
105 |
with gr.Column():
|
|
|
132 |
- There will two types of files: `bune_IP_addr.txt` and `blocate_IP_addr.txt`
|
133 |
- To get all the good IPs run: `cat bune*`
|
134 |
""")
|
135 |
+
|
136 |
+
|
137 |
+
with gr.Tab(label="Mix domains and IPs"):
|
138 |
+
with gr.Row():
|
139 |
+
with gr.Column():
|
140 |
+
ip_subclasses_raw = gr.Textbox(label="IP Subclasses plain text", \
|
141 |
+
value="""192.168.1.1/24""", lines=2)
|
142 |
+
with gr.Column():
|
143 |
+
num_of_ips = gr.Number(label="Number of IPs per /24", value=4)
|
144 |
+
with gr.Row():
|
145 |
+
domains_raw = gr.Textbox(label="Domains", value="gogu.com\nasd.com\ndsa.com\ngigi.com")
|
146 |
+
greet_btn = gr.Button("Compute IPs")
|
147 |
+
output_ips = gr.Textbox(label="List of IPs")
|
148 |
+
|
149 |
+
greet_btn.click(fn=generate_ips_per_subclass, inputs=[ip_subclasses_raw, num_of_ips],\
|
150 |
+
outputs=output_ips)
|
151 |
+
|
152 |
+
|
153 |
+
output_mix = gr.Code(label="Mixed IPs and Domains")
|
154 |
+
|
155 |
+
with gr.Row():
|
156 |
+
with gr.Column():
|
157 |
+
reset_btn = gr.ClearButton(label="Reset", components=[ip_subclasses_raw, domains_raw])
|
158 |
+
with gr.Column():
|
159 |
+
mix_btn = gr.Button("Mix IPs and Domains")
|
160 |
+
mix_btn.click(fn=mix, inputs=[domains_raw, output_ips, num_of_ips],\
|
161 |
+
outputs=output_mix)
|
162 |
+
|
163 |
|
164 |
aeon.launch(auth=(USER, PASS))
|