All Projects → coston → react-obfuscate

coston / react-obfuscate

Licence: MIT license
An intelligent React component to obfuscate any contact link!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-obfuscate

Bashfuscator
A fully configurable and extendable Bash obfuscation framework. This tool is intended to help both red team and blue team.
Stars: ✭ 690 (+693.1%)
Mutual labels:  obfuscation, infosec
toolkit
The essential toolkit for reversing, malware analysis, and cracking
Stars: ✭ 176 (+102.3%)
Mutual labels:  infosec
DcRat
A simple remote tool in C#.
Stars: ✭ 709 (+714.94%)
Mutual labels:  infosec
Jawbreaker
A Python obfuscator using HTTP Requests and Hastebin.
Stars: ✭ 50 (-42.53%)
Mutual labels:  obfuscation
introspector
A schema and set of tools for using SQL to query cloud infrastructure.
Stars: ✭ 61 (-29.89%)
Mutual labels:  infosec
netizenship
a commandline #OSINT tool to find the online presence of a username in popular social media websites like Facebook, Instagram, Twitter, etc.
Stars: ✭ 33 (-62.07%)
Mutual labels:  infosec
baby obfuscator
Using LLVM Pass to obfuscate program
Stars: ✭ 66 (-24.14%)
Mutual labels:  obfuscation
folm
Folm
Stars: ✭ 16 (-81.61%)
Mutual labels:  obfuscation
restincode
A memorial site for Hackers and Infosec people who have passed
Stars: ✭ 62 (-28.74%)
Mutual labels:  infosec
code-obfuscation
一款iOS代码混淆工具(A code obfuscation tool for iOS.)
Stars: ✭ 32 (-63.22%)
Mutual labels:  obfuscation
rejig
Turn your VPS into an attack box
Stars: ✭ 33 (-62.07%)
Mutual labels:  infosec
TrezorSymmetricFileEncryption
🔒 Use your Trezor device to symmetrically encrypt and decrypt files
Stars: ✭ 16 (-81.61%)
Mutual labels:  obfuscation
Berserker
Obfuscate your Python scripts better, faster.
Stars: ✭ 81 (-6.9%)
Mutual labels:  obfuscation
PyParser-CVE
Multi source CVE/exploit parser.
Stars: ✭ 25 (-71.26%)
Mutual labels:  infosec
InfoPhish
InfoPath Phishing Repo Resource
Stars: ✭ 68 (-21.84%)
Mutual labels:  infosec
TIGMINT
TIGMINT: OSINT (Open Source Intelligence) GUI software framework
Stars: ✭ 195 (+124.14%)
Mutual labels:  infosec
qvm-create-windows-qube
Spin up new Windows qubes quickly, effortlessly and securely on Qubes OS
Stars: ✭ 267 (+206.9%)
Mutual labels:  infosec
tutorials
Additional Resources For Securing The Stack Tutorials
Stars: ✭ 36 (-58.62%)
Mutual labels:  infosec
sgCheckup
sgCheckup generates nmap output based on scanning your AWS Security Groups for unexpected open ports.
Stars: ✭ 77 (-11.49%)
Mutual labels:  infosec
magicRecon
MagicRecon is a powerful shell script to maximize the recon and data collection process of an objective and finding common vulnerabilities, all this saving the results obtained in an organized way in directories and with various formats.
Stars: ✭ 478 (+449.43%)
Mutual labels:  infosec

react-obfuscate

Coverage Status GitHub last commit npm version npm

react-obfuscate

Demo & Examples

Live demo: react-obfuscate.coston.io

How it works

The user passes the contact link as an email, tel, sms, facetime, or href prop. The component obfuscates href data until a hover, click, or focus event. Links are given their proper URL schemes (mailto, facetime, etc.) The link is rendered in reverse in the dom, but reversed again with css. This making the link useless for spammers, but user friendly on screen.

Why

The world needs obfuscated links that display the link in a friendly way.

Installation

npm install --save react-obfuscate

Input

import React from 'react';
import Obfuscate from 'react-obfuscate';

export default () => (
  <p>
    Phone: <Obfuscate tel="205-454-1234" />
    <br />
    Email:{' '}
    <Obfuscate
      email="[email protected]"
      headers={{
        cc: '[email protected]',
        bcc: '[email protected]',
        subject: 'react-obfuscate',
        body: 'Down with the machines!',
      }}
    />
  </p>
);

Output

Robot Interaction

<p>
  Phone:
  <a href="obfuscated" style="direction: rtl; unicode-bidi: bidi-override;"
    >4321-454-502</a
  ><br />
  Email:
  <a href="obfuscated" style="direction: rtl; unicode-bidi: bidi-override;"
    >oi.notsoc@olleh</a
  >
</p>

Human Interaction

<p>
  Phone: <a href="tel:205-454-1234">205-454-1234</a><br>
  Email: <a href="mailto:[email protected]?cc=kate%40acidburn.af&amp;bcc=tanderson%40metacortex.net&amp;subject=react-obfuscate&amp;body=Down%20with%20the%20machines!">[email protected]</a>
</p>

Common Options

Prop Type Default Description
email string null email address of the intended recipient
headers object null subject, cc, bcc, body, etc
tel string null telephone number of the intended recipient
sms string null sms number of the intended recipient
facetime string null facetime address of the intended recipient
href string null Obfuscate any other URL type (e.g. WhatsApp)

Uncommon Options

Prop Type Default Description
linkText string 'obfuscated' add custom pre-interaction href attribute placeholder text
obfuscate boolean true set to false to disable obfuscation
obfuscateChildren boolean true set to false to disable obfuscation of children
element string 'a' use if you want to override the default a tag
onClick function null called prior to setting location (e.g. for analytics tracking)

Development

npm start

Consecutive Obfuscate/inline elements

react-obfuscate is an inline element. Using consecutive inline elements inside a block element causes an issue with the bidi-override reversal on Chrome. To prevent this, add any text between the elements, wrap <Obfuscate/> with another element (like <span>), or add style={{display:'inline-block'}} to prevent any issues.

Example Case:

<address>
  <Obfuscate style={{ display: 'inline-block' }} email="[email protected]" />
  <br />
  <Obfuscate style={{ display: 'inline-block' }} tel="+69 111 222 333" />
</address>

Obfuscating custom elements with the element prop

With the element prop, users can obfuscate any element, like paragraphs or headers. Changing the dom element also removes the href and onClick props. Custom styling is required due to handling of right-to-left direction styles. Usually, adding style={{textAlign:'left'}} will suffice.

Example Case:

<Obfuscate element="p" style={{ textAlign: 'left' }}>
  This paragraph is more secret than others.
</Obfuscate>

Children

By default, objects are not reversed in the dom, but other types are. The obfuscateChildren prop set will disabled this functionality when set to false. If the child is an object, like html elements are, it will be rendered normally.

Example Use Case
<Obfuscate email="[email protected]" aria-label="Email Me">
  <svg width={24} height={21}>
    <path
      fill="#000"
      d="M12 12.713L.0 3h23.97L12 12.713zm0 2.574L0 5.562V21h24V5"
    />
  </svg>
</Obfuscate>

Contributors

react-obfuscate is awesome thanks to these community members:

Contributing

Please help make this react component better. Feel free to submit an issue, or contribute through a pull request.

License

Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].