3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Eléments d'authentification LDAP $ldaprdn = 'admin'; // DN ou RDN LDAP $ldappass = '%00'; // Mot de passe associé // Connexion au serveur LDAP $ldapconn = ldap_connect("challenge01.root-me.org",54013) or die("Impossible de se connecter au serveur LDAP."); if ($ldapconn) { // Connexion au serveur LDAP $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // Vérification de l'authentification if ($ldapbind) { echo "Connexion LDAP réussie..."; } else { echo "Connexion LDAP échouée..."; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/FnRcn
function name:  (null)
number of ops:  22
compiled vars:  !0 = $ldaprdn, !1 = $ldappass, !2 = $ldapconn, !3 = $ldapbind
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'admin'
    4     1        ASSIGN                                                   !1, '%2500'
    7     2        INIT_FCALL_BY_NAME                                       'ldap_connect'
          3        SEND_VAL_EX                                              'challenge01.root-me.org'
          4        SEND_VAL_EX                                              54013
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                           ~7      !2, $6
          7      > JMPNZ_EX                                         ~7      ~7, ->10
    8     8    > > EXIT                                                     'Impossible+de+se+connecter+au+serveur+LDAP.'
          9*       BOOL                                             ~7      <true>
   10    10    > > JMPZ                                                     !2, ->21
   13    11    >   INIT_FCALL_BY_NAME                                       'ldap_bind'
         12        SEND_VAR_EX                                              !2
         13        SEND_VAR_EX                                              !0
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $8      
         16        ASSIGN                                                   !3, $8
   16    17      > JMPZ                                                     !3, ->20
   17    18    >   ECHO                                                     'Connexion+LDAP+r%C3%A9ussie...'
         19      > JMP                                                      ->21
   19    20    >   ECHO                                                     'Connexion+LDAP+%C3%A9chou%C3%A9e...'
   23    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.61 ms | 1394 KiB | 13 Q