add_filter('the_content', function($content) { if (is_single()) {
$word_count = str_word_count(strip_tags(get_post_field('post_content', get_the_ID())));
$reading_time = ceil($word_count / 200);
$content = 'Temps de lecture estimé : ' . $reading_time . ' minute(s).' . $content;
}
return $content;
});
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove-SysmonOldLogs.ps1 | |
$Folder = "C:\Sysmon" | |
$Days = 30 | |
Get-ChildItem -Path $Folder -Recurse -File | Where-Object { | |
($_.LastWriteTime -lt (Get-Date).AddDays(-$Days)) | |
} | Remove-Item -Force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the content below in your /etc/hosts file on Linux and macOS or C:\Windows\System32\drivers\etc\hosts on Windows | |
# Block X/Twitter | |
127.0.0.1 twitter.com | |
127.0.0.1 *.twitter.com | |
127.0.0.1 www.twitter.com | |
127.0.0.1 mobile.twitter.com | |
127.0.0.1 m.twitter.com | |
127.0.0.1 api.twitter.com | |
127.0.0.1 ads.twitter.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00 | |
01 | |
02 | |
03 | |
04 | |
05 | |
06 | |
07 | |
08 | |
09 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
https://start.me/p/vjEPvb/thug-bounty # Pentest / Bug bounty bookmarks | |
https://start.me/p/QRQb0O/trouble-fake # OSINT bookmarks | |
######################################################### | |
https://github.com/Hack-with-Github/Awesome-Hacking | |
https://github.com/sehno/Bug-bounty/blob/master/bugbounty_checklist.md | |
https://github.com/shieldfy/API-Security-Checklist/blob/master/README.md | |
https://www.jhaddix.com/post/my-xmind-hunt-template-for-hakluke | |
https://github.com/Ignitetechnologies/Mindmap | |
######################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install NGINX, PHP, Tor and Vim: | |
sudo dnf install nginx php tor vim | |
Set Tor: | |
sudo vim /etc/tor/torrc | |
Uncomment this 2 lines: | |
HiddenServiceDir /var/lib/tor/hidden_service/ | |
HiddenServicePort 80 127.0.0.1:80 | |
sudo systemctl enable tor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c "import pty; pty.spawn('/bin/bash')" |
NewerOlder