-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathphpfunctions-check.php
executable file
·1269 lines (1257 loc) · 57.3 KB
/
phpfunctions-check.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
require("core.php");
head();
?>
<div class="content-wrapper">
<!--CONTENT CONTAINER-->
<!--===================================================-->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark"><i class="fas fa-check"></i> PHP Functions - Security Check</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="dashboard.php"><i class="fas fa-home"></i> Admin Panel</a></li>
<li class="breadcrumb-item active">PHP Functions - Security Check</li>
</ol>
</div>
</div>
</div>
</div>
<!--Page content-->
<!--===================================================-->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-9">
<div class="card">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item active">
<a href="#f1" data-toggle="tab" class="nav-link active text-center">Command Execution</a>
</li>
<li class="nav-item">
<a href="#f2" data-toggle="tab" class="nav-link text-center">PHP Code Execution</a>
</li>
<li class="nav-item">
<a href="#f3" data-toggle="tab" class="nav-link text-center">Information Disclosure</a>
</li>
<li class="nav-item">
<a href="#f4" data-toggle="tab" class="nav-link text-center">Filesystem Functions</a>
</li>
<li class="nav-item">
<a href="#f5" data-toggle="tab" class="nav-link text-center">Other</a>
</li>
</ul>
</div>
<div class="card-body">
<div class="tab-content">
<div id="f1" class="tab-pane fade active show">
<div class="card card-body bg-light">Executing commands and returning the complete output</div><br />
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> exec
<?php
if (function_exists('exec')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns last line of commands output</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> passthru
<?php
if (function_exists('passthru')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Passes commands output directly to the browser</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> system
<?php
if (function_exists('system')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Passes commands output directly to the browser and returns last line</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> shell_exec
<?php
if (function_exists('shell_exec')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns commands output</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> popen
<?php
if (function_exists('popen')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Opens read or write pipe to process of a command</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> proc_open
<?php
if (function_exists('proc_open')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Similar to popen() but greater degree of control</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> pcntl_exec
<?php
if (function_exists('pcntl_exec')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Executes a program</pre></h5>
</div>
</div>
<div id="f2" class="tab-pane fade">
<div class="card card-body bg-light">Apart from eval there are other ways to execute PHP code: include/require can be used for remote code execution in the form of Local File Include and Remote File Include vulnerabilities.</div><br />
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> eval
<span class="badge badge-danger">Not Disabled</span>
<br /><br /><pre class="breadcrumb">Evaluate a string as PHP code</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> assert
<?php
if (function_exists('assert')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Identical to eval()</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> preg_replace
<?php
if (function_exists('preg_replace')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Does an eval() on match</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> create_function
<?php
if (function_exists('create_function')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Create an anonymous (lambda-style) function</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> include
<span class="badge badge-danger">Not Disabled</span>
<br /><br /><pre class="breadcrumb">Includes and evaluates the specified file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> include_once
<span class="badge badge-danger">Not Disabled</span>
<br /><br /><pre class="breadcrumb">Includes and evaluates the specified file during the execution of script</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> require
<span class="badge badge-danger">Not Disabled</span>
<br /><br /><pre class="breadcrumb">Identical to include</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> require_once
<span class="badge badge-danger">Not Disabled</span>
<br /><br /><pre class="breadcrumb">Identical to require except PHP will check if the file has already been included, and if so, not include (require) it again.</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> allow_url_fopen
<?php
if (function_exists('allow_url_fopen')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">This option enables the URL-aware fopen wrappers that enable accessing URL object like files - File inclusion vulnerability</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> allow_url_include
<?php
if (function_exists('allow_url_include')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">This option allows the use of URL-aware fopen wrappers with the following functions: include, include_once, require, require_once - File inclusion vulnerability</pre></h5>
</div>
</div>
<div id="f3" class="tab-pane fade">
<div class="card card-body bg-light">Most of these function calls are not sinks. But rather it maybe a vulnerability if any of the data returned is viewable to an attacker. If an attacker can see phpinfo() it is definitely a vulnerability.</div><br />
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> phpinfo
<?php
if (function_exists('phpinfo')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Outputs information about PHP's configuration</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> expose_php
<?php
if (function_exists('expose_php')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Adds your PHP version to the response headers and this could be used for security exploits</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> display_errors
<?php
if (function_exists('display_errors')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Shows PHP errors to the client and this could be used for security exploits</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> display_startup_errors
<?php
if (function_exists('display_startup_errors')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Shows PHP startup sequence errors to the client and this could be used for security exploits</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> posix_getlogin
<?php
if (function_exists('posix_getlogin')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Return login name</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> posix_ttyname
<?php
if (function_exists('posix_ttyname')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Determine terminal device name</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> getenv
<?php
if (function_exists('getenv')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets the value of an environment variable</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> get_current_user
<?php
if (function_exists('get_current_user')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets the name of the owner of the current PHP script</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> proc_get_status
<?php
if (function_exists('proc_get_status')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Get information about a process opened by proc_open()</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> get_cfg_var
<?php
if (function_exists('get_cfg_var')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets the value of a PHP configuration option</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> disk_free_space
<?php
if (function_exists('disk_free_space')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns available space on filesystem or disk partition</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> disk_total_space
<?php
if (function_exists('disk_total_space')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns the total size of a filesystem or disk partition</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> diskfreespace
<?php
if (function_exists('diskfreespace')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Alias of disk_free_space()</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> getcwd
<?php
if (function_exists('getcwd')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets the current working directory</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> getmygid
<?php
if (function_exists('getmygid')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Get PHP script owner's GID</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> getmyinode
<?php
if (function_exists('getmyinode')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets the inode of the current script</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> getmypid
<?php
if (function_exists('getmypid')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets PHP's process ID</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> getmyuid
<?php
if (function_exists('getmyuid')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets PHP script owner's UID</pre></h5>
</div>
</div>
<div id="f4" class="tab-pane fade">
<div class="card card-body bg-light">According to RATS all filesystem functions in PHP are nasty. Some of these don't seem very useful to the attacker. Others are more useful than you might think. For instance if allow_url_fopen=On then a url can be used as a file path, so a call to copy($_GET['s'], $_GET['d']); can be used to upload a PHP script anywhere on the system. Also if a website is vulnerable to a request send via GET everyone of those file system functions can be abused to channel and attack to another host through your server.</div><br />
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> fopen
<?php
if (function_exists('fopen')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Opens file or URL</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> tmpfile
<?php
if (function_exists('tmpfile')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Creates a temporary file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> bzopen
<?php
if (function_exists('bzopen')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Opens a bzip2 compressed file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> gzopen
<?php
if (function_exists('gzopen')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Open gz-file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> SplFileObject->__construct
<span class="badge badge-danger">Not Disabled</span>
<br /><br /><pre class="breadcrumb">Write to filesystem (partially in combination with reading)</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> chgrp
<?php
if (function_exists('chgrp')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Changes file group</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> chmod
<?php
if (function_exists('chmod')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Changes file mode</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> chown
<?php
if (function_exists('chown')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Changes file owner</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> copy
<?php
if (function_exists('copy')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Copies file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> file_put_contents
<?php
if (function_exists('file_put_contents')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb"></pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> lchgrp
<?php
if (function_exists('lchgrp')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Changes group ownership of symlink</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> lchown
<?php
if (function_exists('lchown')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Changes user ownership of symlink</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> link
<?php
if (function_exists('link')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Create a hard link</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> mkdir
<?php
if (function_exists('mkdir')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Makes directory</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> move_uploaded_file
<?php
if (function_exists('move_uploaded_file')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Moves an uploaded file to a new location</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> rename
<?php
if (function_exists('rename')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Renames a file or directory</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> rmdir
<?php
if (function_exists('rmdir')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Removes directory</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> symlink
<?php
if (function_exists('symlink')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Creates a symbolic link</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> tempnam
<?php
if (function_exists('tempnam')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Create file with unique file name</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> touch
<?php
if (function_exists('touch')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Sets access and modification time of file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> unlink
<?php
if (function_exists('unlink')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Deletes a file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> ftp_get
<?php
if (function_exists('ftp_get')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Downloads a file from the FTP server</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> ftp_nb_get
<?php
if (function_exists('ftp_nb_get')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Read from filesystem</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> file_exists
<?php
if (function_exists('file_exists')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Checks whether a file or directory exists</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> file_get_contents
<?php
if (function_exists('file_get_contents')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Reads entire file into a string</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> file
<?php
if (function_exists('file')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Reads entire file into an array</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> fileatime
<?php
if (function_exists('fileatime')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets last access time of file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> filectime
<?php
if (function_exists('filectime')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets inode change time of file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> filegroup
<?php
if (function_exists('filegroup')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file group</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> fileinode
<?php
if (function_exists('fileinode')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file inode</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> filemtime
<?php
if (function_exists('filemtime')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file modification time</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> fileowner
<?php
if (function_exists('fileowner')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file owner</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> fileperms
<?php
if (function_exists('fileperms')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file permissions</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> filesize
<?php
if (function_exists('filesize')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file size</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> filetype
<?php
if (function_exists('filetype')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets file type</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> glob
<?php
if (function_exists('glob')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Find pathnames matching a pattern</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_dir
<?php
if (function_exists('is_dir')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether filename is a directory</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_executable
<?php
if (function_exists('is_executable')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether filename is executable</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_file
<?php
if (function_exists('is_file')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether filename is a regular file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_link
<?php
if (function_exists('is_link')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether filename is a symbolic link</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_readable
<?php
if (function_exists('is_readable')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether a file exists and is readable</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_uploaded_file
<?php
if (function_exists('is_uploaded_file')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether file was uploaded via HTTP POST</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> is_writable
<?php
if (function_exists('is_writable')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Tells whether filename is writable</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> linkinfo
<?php
if (function_exists('linkinfo')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gets information about a link</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> lstat
<?php
if (function_exists('lstat')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gives information about a file or symbolic link</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> parse_ini_file
<?php
if (function_exists('parse_ini_file')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Parse a configuration file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> pathinfo
<?php
if (function_exists('pathinfo')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns information about a file path</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> readfile
<?php
if (function_exists('readfile')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Outputs a file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> readlink
<?php
if (function_exists('readlink')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns target of a symbolic link</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> realpath
<?php
if (function_exists('realpath')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Returns canonicalized absolute pathname</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> stat
<?php
if (function_exists('stat')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Gives information about a file</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> gzfile
<?php
if (function_exists('gzfile')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Read entire gz-file into an array</pre></h5>
</div>
<div class="callout callout-default">
<h5><i class="fas fa-code"></i> readgzfile
<?php
if (function_exists('readgzfile')) {
echo '<span class="badge badge-danger">Not Disabled</span>';
} else {
echo '<span class="badge badge-success">Disabled</span>';
}
?>
<br /><br /><pre class="breadcrumb">Output a gz-file</pre></h5>