Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/vreg/node_modules/.bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/vreg/node_modules/.bin/miller-rabin
#!/usr/bin/env node
var bn = require('bn.js');
var fs = require('fs');
var mr = require('../').create();

var num = '';
if (process.argv[2]) {
  num += fs.readFileSync(process.argv[2]);
  start(num);
} else {
  process.stdin.on('data', function(chunk) {
    num += chunk.toString().replace(/[^0-9a-f]/gi, '');
  });
  process.stdin.once('end', function() {
    start(num);
  });
}

function start(text) {
  var num = new bn(text, 16);

  var divisor = mr.getDivisor(num);
  if (!divisor)
    process.exit(1);
  if (divisor.cmpn(1) === 0)
    process.exit(0);

  console.log(divisor.toString(16));
}

Spamworldpro Mini