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:
parent
49bd512ef6
commit
dbc73dadc3
|
@ -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 */ })()
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue