403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/stdio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/stdio/printf_count_output.cpp
//
// printf_count_output.cpp
//
//      Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Defines the functions that control the enable state of %n.
//
#include <corecrt_internal_stdio.h>



static UINT_PTR enable_percent_n = 0;



// Enables or disables the %n format specifier for the printf family of functions.
// Note the use of the __security_cookie:  if the static variable was set to a
// known value, an attacker could potentially modify that value and then provide
// a malicious %n specifier.  The cookie is or'ed with 1 becuase a cookie with a
// value of zero is possible.
extern "C" int __cdecl _set_printf_count_output(int const value)
{
    int const old = (enable_percent_n == (__security_cookie | 1));
    enable_percent_n = (value ? (__security_cookie | 1) : 0);
    return old;
}



// Tests whether the %n format specifier for the printf family of functions is
// enabled.
extern "C" int __cdecl _get_printf_count_output()
{
    return enable_percent_n == (__security_cookie | 1);
}

Youez - 2016 - github.com/yon3zu
LinuXploit