Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK ! d
php_sockets.hnu [ /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2018 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Chris Vandomelen |
| Sterling Hughes |
| |
| WinSock: Daniel Beulshausen |
+----------------------------------------------------------------------+
*/
#ifndef PHP_SOCKETS_H
#define PHP_SOCKETS_H
/* $Id$ */
#if HAVE_CONFIG_H
# include "config.h"
#endif
#if HAVE_SOCKETS
#include
#ifdef PHP_WIN32
# include "windows_common.h"
#endif
#define PHP_SOCKETS_VERSION PHP_VERSION
extern zend_module_entry sockets_module_entry;
#define phpext_sockets_ptr &sockets_module_entry
#ifdef PHP_WIN32
#include
#else
#if HAVE_SYS_SOCKET_H
#include
#endif
#endif
#ifndef PHP_WIN32
typedef int PHP_SOCKET;
# define PHP_SOCKETS_API PHPAPI
#else
# define PHP_SOCKETS_API __declspec(dllexport)
typedef SOCKET PHP_SOCKET;
#endif
typedef struct {
PHP_SOCKET bsd_socket;
int type;
int error;
int blocking;
zval zstream;
} php_socket;
#ifdef PHP_WIN32
struct sockaddr_un {
short sun_family;
char sun_path[108];
};
#endif
PHP_SOCKETS_API int php_sockets_le_socket(void);
PHP_SOCKETS_API php_socket *php_create_socket(void);
PHP_SOCKETS_API void php_destroy_socket(zend_resource *rsrc);
PHP_SOCKETS_API void php_destroy_sockaddr(zend_resource *rsrc);
#define php_sockets_le_socket_name "Socket"
#define php_sockets_le_addrinfo_name "AddressInfo"
#define PHP_SOCKET_ERROR(socket, msg, errn) \
do { \
int _err = (errn); /* save value to avoid repeated calls to WSAGetLastError() on Windows */ \
(socket)->error = _err; \
SOCKETS_G(last_error) = _err; \
if (_err != EAGAIN && _err != EWOULDBLOCK && _err != EINPROGRESS) { \
php_error_docref(NULL, E_WARNING, "%s [%d]: %s", msg, _err, sockets_strerror(_err)); \
} \
} while (0)
ZEND_BEGIN_MODULE_GLOBALS(sockets)
int last_error;
char *strerror_buf;
ZEND_END_MODULE_GLOBALS(sockets)
ZEND_EXTERN_MODULE_GLOBALS(sockets)
#define SOCKETS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sockets, v)
enum sockopt_return {
SOCKOPT_ERROR,
SOCKOPT_CONTINUE,
SOCKOPT_SUCCESS
};
char *sockets_strerror(int error);
php_socket *socket_import_file_descriptor(PHP_SOCKET sock);
#else
#define phpext_sockets_ptr NULL
#endif
#if defined(_AIX) && !defined(HAVE_SA_SS_FAMILY)
# define ss_family __ss_family
#endif
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
*/
PK ! unicast.pyonu [
^c @ s d Z d d l Z d d l Z d d l Te e e Z e j d x= e e j d Z e j
e d e f e j d qG Wd S( iP iN( t *t i s
i ( R i ( t MYPORTt syst timet sockett AF_INETt
SOCK_DGRAMt st bindt reprt datat sendtot sleep( ( ( s, /usr/lib64/python2.7/Demo/sockets/unicast.pyt s
PK ! )a radio.pyonu [
^c @ s d Z d d l Z d d l Te e e Z e j d e f xF e j d d \ Z Z e j
j e e d e j
j e qA Wd S( iP iN( t *t i i s
( t MYPORTt syst sockett AF_INETt
SOCK_DGRAMt st bindt recvfromt datat wherefromt stderrt writet reprt stdout( ( ( s* /usr/lib64/python2.7/Demo/sockets/radio.pyt s
PK ! '}&Q Q unixserver.pyonu [
^c @ s d d l Z d d l Td Z e e e Z e j e d e j d GHe j d e j \ Z
Z x0 e r e
j
d Z e s Pn e
j e qm We
j e j e d S( iN( t *s unix-sockets Sock name is: [t ]i i ( t ost sockett FILEt AF_UNIXt SOCK_STREAMt st bindt getsocknamet listent acceptt connt addrt Truet recvt datat sendt closet unlink( ( ( s/ /usr/lib64/python2.7/Demo/sockets/unixserver.pyt s
PK ! l
unicast.pynu [ # Send UDP broadcast packets
MYPORT = 50000
import sys, time
from socket import *
s = socket(AF_INET, SOCK_DGRAM)
s.bind(('', 0))
while 1:
data = repr(time.time()) + '\n'
s.sendto(data, ('', MYPORT))
time.sleep(2)
PK ! \- unixclient.pyonu [
^c @ se d d l Td Z e e e Z e j e e j d e j d Z e j d Ge
e GHd S( i( t *s unix-sockets Hello, worldi t ReceivedN( t sockett FILEt AF_UNIXt SOCK_STREAMt st connectt sendt recvt datat closet repr( ( ( s/ /usr/lib64/python2.7/Demo/sockets/unixclient.pyt s
PK ! U telnet.pynu ȯ #! /usr/bin/python2.7
# Minimal interface to the Internet telnet protocol.
#
# It refuses all telnet options and does not recognize any of the other
# telnet commands, but can still be used to connect in line-by-line mode.
# It's also useful to play with a number of other services,
# like time, finger, smtp and even ftp.
#
# Usage: telnet host [port]
#
# The port may be a service name or a decimal port number;
# it defaults to 'telnet'.
import sys, posix, time
from socket import *
BUFSIZE = 1024
# Telnet protocol characters
IAC = chr(255) # Interpret as command
DONT = chr(254)
DO = chr(253)
WONT = chr(252)
WILL = chr(251)
def main():
host = sys.argv[1]
try:
hostaddr = gethostbyname(host)
except error:
sys.stderr.write(sys.argv[1] + ': bad host name\n')
sys.exit(2)
#
if len(sys.argv) > 2:
servname = sys.argv[2]
else:
servname = 'telnet'
#
if '0' <= servname[:1] <= '9':
port = eval(servname)
else:
try:
port = getservbyname(servname, 'tcp')
except error:
sys.stderr.write(servname + ': bad tcp service name\n')
sys.exit(2)
#
s = socket(AF_INET, SOCK_STREAM)
#
try:
s.connect((host, port))
except error, msg:
sys.stderr.write('connect failed: ' + repr(msg) + '\n')
sys.exit(1)
#
pid = posix.fork()
#
if pid == 0:
# child -- read stdin, write socket
while 1:
line = sys.stdin.readline()
s.send(line)
else:
# parent -- read socket, write stdout
iac = 0 # Interpret next char as command
opt = '' # Interpret next char as option
while 1:
data = s.recv(BUFSIZE)
if not data:
# EOF; kill child and exit
sys.stderr.write( '(Closed by remote host)\n')
posix.kill(pid, 9)
sys.exit(1)
cleandata = ''
for c in data:
if opt:
print ord(c)
s.send(opt + c)
opt = ''
elif iac:
iac = 0
if c == IAC:
cleandata = cleandata + c
elif c in (DO, DONT):
if c == DO: print '(DO)',
else: print '(DONT)',
opt = IAC + WONT
elif c in (WILL, WONT):
if c == WILL: print '(WILL)',
else: print '(WONT)',
opt = IAC + DONT
else:
print '(command)', ord(c)
elif c == IAC:
iac = 1
print '(IAC)',
else:
cleandata = cleandata + c
sys.stdout.write(cleandata)
sys.stdout.flush()
try:
main()
except KeyboardInterrupt:
pass
PK ! '
rpython.pynu ȯ #! /usr/bin/python2.7
# Remote python client.
# Execute Python commands remotely and send output back.
import sys
import string
from socket import *
PORT = 4127
BUFSIZE = 1024
def main():
if len(sys.argv) < 3:
print "usage: rpython host command"
sys.exit(2)
host = sys.argv[1]
port = PORT
i = string.find(host, ':')
if i >= 0:
port = string.atoi(port[i+1:])
host = host[:i]
command = string.join(sys.argv[2:])
s = socket(AF_INET, SOCK_STREAM)
s.connect((host, port))
s.send(command)
s.shutdown(1)
reply = ''
while 1:
data = s.recv(BUFSIZE)
if not data: break
reply = reply + data
print reply,
main()
PK ! [gy y mcast.pyonu [
Afc @ s} d Z d Z d Z d Z d d l Z d d l Z d d l Z d d l Z d Z d Z d Z
e d k ry e n d S(
i s 225.0.0.250s' ff15:7079:7468:6f6e:6465:6d6f:6d63:6173i iNc C sM d t j d k r t n t } d t j d k r? t | n
t | d S( Ns -6i s -s( t syst argvt MYGROUP_6t MYGROUP_4t sendert receiver( t group( ( s* /usr/lib64/python2.7/Demo/sockets/mcast.pyt main s
c C s t j | d d } t j | d t j } t j d t } | d t j k rp | j t j t j
| n | j t j t j | xK t
r t t j } | j | d | d d t f t j d q Wd S( Ni s @is i i ( t sockett getaddrinfot Nonet
SOCK_DGRAMt structt packt MYTTLt AF_INETt
setsockoptt
IPPROTO_IPt IP_MULTICAST_TTLt IPPROTO_IPV6t IPV6_MULTICAST_HOPSt Truet reprt timet sendtot MYPORTt sleep( R t addrinfot st ttl_bint data( ( s* /usr/lib64/python2.7/Demo/sockets/mcast.pyR s "c C sP t j | d d } t j | d t j } | j t j t j d | j d t f t j | d | d d } | d t j
k r | t j d t j
} | j t j t j | n/ | t j d d } | j t j t j | xY t rK| j d \ } } x | d d k r.| d } qWt | d
t | GHq Wd S( Ni i t i s =Is @Ii is s ( R R R
R R t
SOL_SOCKETt SO_REUSEADDRt bindR t inet_ptonR R R
t
INADDR_ANYR t IP_ADD_MEMBERSHIPR t IPV6_JOIN_GROUPR t recvfromt strR ( R R R t group_bint mreqR R ( ( s* /usr/lib64/python2.7/Demo/sockets/mcast.pyR 1 s t __main__( R R R R R R R R R R R t __name__( ( ( s* /usr/lib64/python2.7/Demo/sockets/mcast.pyt s PK ! FG udpecho.pyonu [
Afc @ sQ d d l Z d d l Td
Z d Z d Z d Z d Z d Z e d S( iN( t *iP i i c C sd t t j d k r t n t j d d k r<