-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
29 lines (20 loc) · 789 Bytes
/
test.php
File metadata and controls
29 lines (20 loc) · 789 Bytes
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
<?php
include_once 'pasm.php';
$x = new PASM();
$x->set('ecx',3) // REGISTER
->set('ldp',2) // NUMBER OF COMMANDS TO GO BACK
->set('pdb',1) // DEBUG FIELD
->set('rdx',3) // REGISTER
->set('ah',2) // REGISTER
->end();
$y = "ecx";
//print_r($x);
$x->mov_ecx()->decr()->jne()->loope()->end();
//print_r($x);
$x->set('ecx',3)->set('ldp',1)->decr()->jne()->loope()->end();
$x->set('ecx',3)->set('ldp',2)->decr()->mov_ecx()->decr()->jne()->loop();
$x->set('ecx',3)->set('ldp',1)->decr()->mov_ecx()->decr()->jmp();
$x->decr()->decr()->jgz()->decr()->set('ldp',7)->loopnz();
$x->set('ecx',3)->set('ldp',1)->decr()->mov_ecx()->decr()->jmp()->loop()->create_register("eed", 3);
print_r($x);
?>