
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
mb64-vpn-detect
Advanced tools
This project is a simple React application that detects if a user is using a VPN and displays relevant information such as IP address, continent, country, ISP, and currency.
This project is a simple React application that detects if a user is using a VPN and displays relevant information such as IP address, continent, country, ISP, and currency.
App
ComponentThis is the main component of the application. It uses the VpnCheck
function to fetch VPN-related data and displays it.
import VpnCheck from "mb64-vpn-detect";
import { useState, useEffect } from "react";
import Work from './Work';
export default function App() {
const [fullData, setFullData] = useState();
useEffect(() => {
async function CallThis() {
// Replace 'your_api_key_here' with your actual API key
const data = await VpnCheck("your_api_key_here");
if (data) {
setFullData(data);
}
}
CallThis();
}, []);
return (
<div className="App">
<h1>VPN Detector</h1>
<div className="screen">
<div className="main">
{fullData && (
<div>
<h2>Full Data</h2>
<div>
<h3>IP: {fullData?.data?.ip}</h3>
<h3>Continent: {fullData?.data?.continent}</h3>
<h3>Country: {fullData.data.country}</h3>
<h3>ISP: {fullData?.data?.isp}</h3>
<h3>Currency: {fullData?.data?.currency}</h3>
</div>
</div>
)}
</div>
<Work Vpn={fullData?.status} />
</div>
</div>
);
}
Work
ComponentThis component displays a message indicating whether the user is using a VPN.
import "./work.css";
export default function Work({ Vpn }) {
if (Vpn) {
return (
<div className="main">
<h1>You are on VPN</h1>
<h3>Please Turn off</h3>
</div>
);
}
return (
<div className="main">
<h1>You Are Not using VPN</h1>
</div>
);
}
react
: A JavaScript library for building user interfaces.mb64-vpn-detect
: A library to check if a user is using a VPN.To install the dependencies, run:
npm install react mb64-vpn-detect
To use this application, you need to API key. Demo Api Key "demokey123".
Replace 'your_api_key_here'
in the App
component with your actual API key.
This project is licensed under the MIT License.
FAQs
This project is a simple React application that detects if a user is using a VPN and displays relevant information such as IP address, continent, country, ISP, and currency.
The npm package mb64-vpn-detect receives a total of 11 weekly downloads. As such, mb64-vpn-detect popularity was classified as not popular.
We found that mb64-vpn-detect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.