1
2
Fork 0
mirror of https://github.com/carlospolop/hacktricks.git synced 2023-12-14 19:12:55 +01:00

GitBook: [master] one page modified

This commit is contained in:
CPol 2021-03-07 21:32:31 +00:00 committed by gitbook-bot
parent 49bd512ef6
commit dbc73dadc3
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -1041,5 +1041,14 @@ In cases where the **function doesn't have any name**, you can still print the *
```javascript
(function (){ return arguments.callee.toString(); })()
(function (){ return arguments[0]; })("arg0")
```
Some **random** ways to **extract the code** of a function \(even comments\) from another function:
```javascript
(function (){ return retFunc => String(arguments[0]) })(a=>{/* Hidden commment */})()
(function (){ return retFunc => Array(arguments[0].toString()) })(a=>{/* Hidden commment */})()
(function (){ return String(this)}).bind(()=>{ /* Hidden commment */ })()
```