-
Notifications
You must be signed in to change notification settings - Fork 635
/
LayoutApp.js
196 lines (194 loc) · 7.26 KB
/
LayoutApp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import React from 'react';
import { Layout, Menu, Typography, Button, Badge } from 'antd';
import { CopyrightCircleOutlined, FullscreenOutlined } from '@ant-design/icons';
import { createFromIconfontCN } from '@ant-design/icons';
import { goTo } from 'react-chrome-extension-router';
import ReverseShell from './ReverseShell';
import PhpReverseShell from './PhpReverseShell';
import TtySpawnShell from './TtySpawnShell';
import Base64Encode from './encoding/Base64Encode';
import HexEncode from './encoding/HexEncode';
import Hashing from './encoding/Hashing';
import URLDecode from './encoding/URLEncode';
import LinuxCommands from './LinuxCommands';
import PowershellCommands from './PowershellCommands';
import LFI from './web/LFI';
import XSS from './web/XSS';
import SQLi from './web/SqlInjection';
import AboutUs from './AboutUs';
import FeedRSS from './FeedRSS';
import SSTI from './web/SSTI';
import FileTransfer from './file_transfer/File_transfer';
const { Paragraph } = Typography;
const { Sider, Content, Footer } = Layout;
const IconFont = createFromIconfontCN({
scriptUrl: [ './iconfont.js' ]
});
export default (props) => {
const target = window.location.href;
return (
<Layout style={{ minHeight: '100vh' }}>
<Sider
collapsed={true}
style={{
overflow: 'auto',
height: '100vh',
position: 'fixed',
left: 0
}}
>
<div className='logo'>
<svg xmlns='http://www.w3.org/2000/svg' width='45' height='35' viewBox='0 0 134.624 80.584'>
<g transform='translate(-6.457 -23.8)'>
<path
d='M138.715,62.377c-9.043-1.871-15.592.78-21.673,4.989l-5.616-26.958-2.18-10.463a1.432,1.432,0,0,0-.624-.936c-.312-.156-6.86-4.21-32.431-4.21s-34.458,4.678-34.77,4.834c-.468.312-.78.624-.78,1.091L36.9,57.543c-4.678,0-19.022.624-26.039,9.2C7.119,71.264,6.651,78.125,9.3,84.829c4.054,9.979,14.033,16.839,26.506,18.087a80.594,80.594,0,0,0,8.42.468c21.985,0,40.071-8.887,52.389-16.06,1.559-.468,11.538-3.274,24.635-8.42,14.812-5.769,18.554-14.033,18.71-14.5a2.163,2.163,0,0,0,0-1.4C139.495,62.689,139.183,62.377,138.715,62.377ZM43.448,32.128c2.495-1.091,11.694-4.21,32.743-4.21,20.581,0,28.377,2.651,30.248,3.43L111.585,56.3a165.118,165.118,0,0,1-40.851,8.887C51.088,66.9,41.733,63,39.238,61.6ZM95.058,84.517c-13.409,7.8-33.991,17.931-59.094,15.436-11.382-1.247-20.27-7.328-24.012-16.216-2.183-5.613-1.871-11.382,1.091-14.968,5.925-7.328,18.554-8.108,23.232-8.108L34.249,74.694a1.367,1.367,0,0,0,.78,1.559c9.979,6.081,21.049,8.264,31.5,8.264,16.216,0,31.34-5.145,40.7-9.043A85,85,0,0,1,95.058,84.517ZM120,75.942C114.236,78.125,109.091,80,104.881,81.4c2.183-1.715,4.054-3.43,6.081-5.145,7.172-6.237,13.1-11.382,21.829-11.382a19.881,19.881,0,0,1,2.962.156C134.038,67.522,129.516,72.356,120,75.942Z'
transform='translate(0 0)'
fill='#F0F2F5'
stroke='#F0F2F5'
stroke-width='2'
/>
</g>
</svg>
</div>
<Menu theme='dark' defaultSelectedKeys={[ '1' ]} mode='inline'>
<Menu.Item
key='1'
icon={<IconFont type='icon-gnubash' style={{ fontSize: '1.5em', marginTop: 3 }} />}
onClick={() => goTo(ReverseShell)}
>
Reverse Shell
</Menu.Item>
<Menu.Item
key='2'
icon={<IconFont type='icon-php' style={{ fontSize: '1.5em', marginTop: 3 }} />}
onClick={() => goTo(PhpReverseShell)}
>
PHP Reverse Shell
</Menu.Item>
<Menu.Item
key='3'
icon={
<IconFont type='icon-lvzhou_yuanchengTelnet' style={{ fontSize: '1.5em', marginTop: 3 }} />
}
onClick={() => goTo(TtySpawnShell)}
>
TTY Spawn Shell
</Menu.Item>
<Menu.Item
key='4'
icon={<IconFont type='icon-linux' style={{ fontSize: '1.5em', marginTop: 3 }} />}
onClick={() => goTo(LinuxCommands)}
>
Useful Linux commands
</Menu.Item>
<Menu.Item
key='5'
icon={
<Badge dot size='small' style={{ transform: `translate(5px, 3px)` }}>
<IconFont type='icon-powershell' style={{ fontSize: '1.5em', marginTop: 3 }} />
</Badge>
}
onClick={() => goTo(PowershellCommands)}
/>
<Menu.Item
key='6'
icon={<IconFont type='icon-transfer' style={{ fontSize: '1.5em', marginTop: 3 }} />}
onClick={() => goTo(FileTransfer)}
>
Transfer Methods
</Menu.Item>
<Menu.Item
key='7'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-l-file' />}
onClick={() => goTo(LFI)}
>
LFI
</Menu.Item>
<Menu.Item
key='8'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-js' />}
onClick={() => goTo(XSS)}
>
XSS
</Menu.Item>
<Menu.Item
key='9'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-sql' />}
onClick={() => goTo(SQLi)}
>
SQL Injection
</Menu.Item>
<Menu.Item
key='10'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-jiemaleixing' />}
onClick={() => goTo(Base64Encode)}
>
Base64 Encoder / Decoder
</Menu.Item>
<Menu.Item
key='11'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-hash' />}
onClick={() => goTo(Hashing)}
>
Hashing
</Menu.Item>
<Menu.Item
key='12'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-web_link' />}
onClick={() => goTo(URLDecode)}
>
URL Encoder / Decoder
</Menu.Item>
<Menu.Item
key='13'
icon={<IconFont style={{ fontSize: '1.5em', marginTop: 3 }} type='icon-hexo' />}
onClick={() => goTo(HexEncode)}
>
Hexadecimal Encoder / Decoder
</Menu.Item>
<Menu.Item
key='14'
icon={<IconFont type='icon-inserttemplate' style={{ fontSize: '1.5em', marginTop: 3 }} />}
onClick={() => goTo(SSTI)}
>
SSTI
</Menu.Item>
<Menu.Item
key='15'
icon={
<Badge dot size='small' style={{ transform: `translate(3px, 5px)` }}>
<IconFont type='icon-Cloud' style={{ fontSize: '1.5em', marginTop: 3 }} />
</Badge>
}
onClick={() => goTo(FeedRSS)}
/>
<Menu.Item
key='16'
icon={<IconFont type='icon-about' style={{ fontSize: '1.5em', marginTop: 3 }} />}
onClick={() => goTo(AboutUs)}
>
About us
</Menu.Item>
</Menu>
</Sider>
<Layout className='site-layout' style={{ marginLeft: 80 }}>
<Content style={{ margin: '24px 16px 0', overflow: 'initial' }}>
<div className='site-layout-background' style={{ padding: 24, minHeight: 360 }}>
{props.children}
</div>
</Content>
<Footer style={{ textAlign: 'center' }}>
<CopyrightCircleOutlined /> Hack Tools - The all in one Red team browser extension for web
pentesters
<Paragraph style={{ textAlign: 'center' }}>Ludovic COULON - Riadh BOUCHAHOUA</Paragraph>
<pre style={{ textAlign: 'center' }}>HackTools Version - 0.3.0</pre>
<Button icon={<FullscreenOutlined style={{ margin: 5 }} />} type='link'>
<a href={target} target='_blank'>
Fullscreen mode
</a>
</Button>
</Footer>
</Layout>
</Layout>
);
};