A PHP Error was encountered
Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 624
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)
Filename: view/download.php
Line Number: 2
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 2
Function: header
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 625
Function: view
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)
Filename: view/download.php
Line Number: 3
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 3
Function: header
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 625
Function: view
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
/* This file has been generated by the Hex-Rays decompiler.
Copyright (c) 2007-2014 Hex-Rays
Detected compiler: GNU C++
*/
#include
//-------------------------------------------------------------------------
// Function declarations
int init_proc();
// int *__errno_location(void);
// int sprintf(char *s, const char *format, ...);
// int __gmon_start__(void); weak
// void free(void *ptr);
// void *memcpy(void *dest, const void *src, size_t n);
// char *strcpy(char *dest, const char *src);
// int printf(const char *format, ...);
// size_t fwrite(const void *ptr, size_t size, size_t n, FILE *s);
// void *malloc(size_t size);
// int puts(const char *s);
// int rand(void);
// int strcmp(const char *s1, const char *s2);
// void exit(int status);
void _do_global_dtors_aux();
int frame_dummy();
int __cdecl main(int argc, const char **argv, const char **envp);
int __cdecl auth(char *s1, char *s2); // idb
void __noreturn asm_();
void _libc_csu_fini();
int *_libc_csu_init();
void _i686_get_pc_thunk_bx();
void (*_do_global_ctors_aux())(void);
void term_proc();
//-------------------------------------------------------------------------
// Data declarations
int _CTOR_LIST__ = 4294967295; // weak
int _DTOR_LIST__[] = { 4294967295 }; // weak
_UNKNOWN _DTOR_END__; // weak
int _JCR_LIST__ = 0; // weak
FILE *stderr; // idb
char completed_6625; // weak
int dtor_idx_6627; // weak
char buffer_2176[148]; // idb
int (__cdecl *function_ptr_2175)(_DWORD, _DWORD); // weak
// extern _UNKNOWN _gmon_start__; weak
//----- (08048454) --------------------------------------------------------
int init_proc()
{
int v1; // [sp+0h] [bp-8h]@0
if ( &_gmon_start__ )
__gmon_start__();
frame_dummy();
_do_global_ctors_aux();
return v1;
}
// 80484B4: using guessed type int __gmon_start__(void);
//----- (08048580) --------------------------------------------------------
#error "8048583: positive sp value has been found (funcsize=2)"
//----- (080485B0) --------------------------------------------------------
void _do_global_dtors_aux()
{
int v0; // edx@2
int i; // ebx@2
if ( !completed_6625 )
{
v0 = dtor_idx_6627;
for ( i = ((&_DTOR_END__ - (_UNKNOWN *)_DTOR_LIST__) >> 2) - 1; dtor_idx_6627 < (unsigned int)i; v0 = dtor_idx_6627 )
{
dtor_idx_6627 = v0 + 1;
((void (*)(void))_DTOR_LIST__[v0 + 1])();
}
completed_6625 = 1;
}
}
// 8049F14: using guessed type int _DTOR_LIST__[];
// 804A044: using guessed type char completed_6625;
// 804A048: using guessed type int dtor_idx_6627;
//----- (08048610) --------------------------------------------------------
int frame_dummy()
{
int result; // eax@1
result = _JCR_LIST__;
if ( _JCR_LIST__ )
result = 0;
return result;
}
// 8049F1C: using guessed type int _JCR_LIST__;
//----- (08048634) --------------------------------------------------------
int __cdecl main(int argc, const char **argv, const char **envp)
{
void *dest; // ST20_4@4
int v4; // ST0C_4@4
if ( argc != 2 )
{
printf("(*) -Syntaxe: %s [ password or payload :P ] n", *argv);
exit(0);
}
dest = malloc(0x1Du);
memcpy(dest, "_0cGj35m9V5T3Ç8CJ0À9H95h3xdh", 0x25u);
function_ptr_2175 = (int (__cdecl *)(_DWORD, _DWORD))auth;
strcpy(buffer_2176, *(const char **)(*(_DWORD *)(v4 + 4) + 4));
*((_BYTE *)dest + 8) = 95;
*((_BYTE *)dest + 9) = 46;
return function_ptr_2175(buffer_2176, dest);
}
// 804A0F4: using guessed type int (__cdecl *function_ptr_2175)(_DWORD, _DWORD);
//----- (080486F4) --------------------------------------------------------
int __cdecl auth(char *s1, char *s2)
{
puts("Vérification de votre mot de passe..");
if ( !strcmp(s1, s2) )
asm_();
return puts("(!) L'authentification a échoué.n Try again ! r");
}
//----- (08048731) --------------------------------------------------------
void __noreturn asm_()
{
long double v0; // fst7@1
int *v1; // eax@2
void *ptr; // [sp+4Ch] [bp-29Ch]@1
char s; // [sp+50h] [bp-298h]@1
int v4; // [sp+2DCh] [bp-Ch]@1
v4 = *MK_FP(__GS__, 20);
memset(&s, 0, 0x28Cu);
v0 = (long double)14 * (long double)(rand() + 653);
sprintf(&s, "%lld%s", (signed __int64)v0, "_VE_T25_*t*_");
ptr = malloc(0x28Cu);
if ( !ptr )
{
fwrite("[-] Allocation memoire echouee!nr ", 1u, 0x22u, stderr);
v1 = __errno_location();
printf(" %d", *v1);
exit(1);
}
printf("[+] Felicitation password de validation de l'épreuve:: %s", &s);
puts("nr");
free(ptr);
exit(1);
}
//----- (080488C0) --------------------------------------------------------
void _libc_csu_fini()
{
;
}
//----- (080488D0) --------------------------------------------------------
int *_libc_csu_init()
{
init_proc();
return &_CTOR_LIST__;
}
// 8049F0C: using guessed type int _CTOR_LIST__;
//----- (0804892A) --------------------------------------------------------
void _i686_get_pc_thunk_bx()
{
;
}
//----- (08048930) --------------------------------------------------------
void (*_do_global_ctors_aux())(void)
{
void (*result)(void); // eax@1
int *v1; // ebx@2
result = (void (*)(void))_CTOR_LIST__;
if ( _CTOR_LIST__ != -1 )
{
v1 = &_CTOR_LIST__;
do
{
--v1;
result();
result = (void (*)(void))*v1;
}
while ( *v1 != -1 );
}
return result;
}
// 8049F0C: using guessed type int _CTOR_LIST__;
//----- (0804895C) --------------------------------------------------------
void term_proc()
{
_do_global_dtors_aux();
}
#error "There were 1 decompilation failure(s) on 12 function(s)"