Search found 35 matches

by sonik
19 Aug 2019, 12:29
Forum: Linux Tutorials (Ubuntu, CentOS, Debian)
Topic: .tar.gz /var/www and vardump mysql and ssh to remote srv
Replies: 0
Views: 13

.tar.gz /var/www and vardump mysql and ssh to remote srv

First things first. With this small and simple tar command we archive all our /var/www/ data. tar -zcvf archive.tar.gz /var/www Now we dump the MySQL database with the next command. mysqldump -u root -p databasename > /root/backupname.sql You will be asked to write the password for the database user...
by sonik
19 Aug 2019, 12:17
Forum: Windows
Topic: How to change proxy with reg file
Replies: 0
Views: 5

How to change proxy with reg file

Create a new file and call it proxy.reg Run and say yes. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] "MigrateProxy"=dword:00000001 "ProxyEnable"=dword:00000001 "ProxyHttp1.1"=dword:00000000 "ProxyServer"="http://proxyhost:proxy...
by sonik
18 Aug 2019, 13:33
Forum: Nikto
Topic: config.php: PHP Config file may contain database IDs and pas
Replies: 0
Views: 6

config.php: PHP Config file may contain database IDs and pas

If you need to protect your config files go to httpd.conf and add to the bottom:

Code: Select all

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
restart httpd after
by sonik
18 Aug 2019, 02:28
Forum: Nikto
Topic: Allowed HTTP Methods: TRACE
Replies: 0
Views: 8

Allowed HTTP Methods: TRACE

If you want to disable TRACE methods go to httpd.conf and add to the bottom:

Code: Select all

TraceEnable Off
by sonik
18 Aug 2019, 02:19
Forum: Nikto
Topic: Retrieved x-powered-by header: PHP
Replies: 0
Views: 4

Retrieved x-powered-by header: PHP

If you want to remove the powered by
Retrieved x-powered-by header: PHP/5.4.16
Go to httpd.conf and add to the bottom

Code: Select all

Header unset X-Powered-By
restart httpd.conf
by sonik
18 Aug 2019, 02:16
Forum: Nikto
Topic: The X-Content-Type-Options header is not set.
Replies: 0
Views: 4

The X-Content-Type-Options header is not set.

For the The X-Content-Type-Options header is not set.
Open httpd.conf and add to the bottom

Code: Select all

LoadModule headers_module modules/mod_headers.so
Header set X-Content-Type-Options nosniff
Restart httpd service
by sonik
18 Aug 2019, 02:11
Forum: Nikto
Topic: The X-XSS-Protection header is not defined.
Replies: 0
Views: 3

The X-XSS-Protection header is not defined.

If after you have checked your website you see this:
The X-XSS-Protection header is not defined.
Go to httpd.conf and add to the bottom

Code: Select all

LoadModule headers_module modules/mod_headers.so
Header set X-XSS-Protection "1; mode=block"
Be shure that Mod_headers is enabled
Restart apache
by sonik
18 Aug 2019, 02:02
Forum: Nikto
Topic: The anti-clickjacking X-Frame-Options header is not present.
Replies: 0
Views: 3

The anti-clickjacking X-Frame-Options header is not present.

If you have this for your site after scanning:
The anti-clickjacking X-Frame-Options header is not present.
Go to apache httpd.conf and add to the bottom of the file

Code: Select all

Header always append X-Frame-Options SAMEORIGIN
After restart the apache server
by sonik
18 Aug 2019, 01:57
Forum: Nikto
Topic: Web Server returns a valid response with junk HTTP methods,
Replies: 0
Views: 5

Web Server returns a valid response with junk HTTP methods,

If you have checked your website for vulnerabilities and found: Web Server returns a valid response with junk HTTP methods, this may cause false positives. You can go and edit your httpd.conf file and add to your vhosts this lines: RewriteEngine On RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD) Rew...
by sonik
26 Jun 2019, 13:15
Forum: Windows
Topic: [SOLVED] NTDS (608) NTDSA: Database C:\Windows\NTDS\ntds.dit
Replies: 0
Views: 94

[SOLVED] NTDS (608) NTDSA: Database C:\Windows\NTDS\ntds.dit

[SOLVED] NTDS (608) NTDSA: Database C:\Windows\NTDS\ntds.dit: Index link_present_active_index of table link_table is corrupted (0). If your server is having problem with ntds.dit and is not replicating here is an easy fix: Open cmd on the server as administrator and follow the commands: You have to...