I am trying to do sub domain fuzzing using wfuzz on parrotOS and when I run the following: sudo wfuzz -c --hc=404 -t 100 -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -u http://FUZZ.google.com/
I get the following error:
/usr/local/lib/python3.9/dist-packages/wfuzz/wfuzz.py:77: UserWarning:Fatal exception: Pycurl error 6: Could not resolve host: www.google.com
-I tried to add the domain in my /etc/hosts file and it doesn't work.
I tried editing the /etc/resolv.conf file and it doesn't work either.
if I use nslookup it resolves the domain.
Related
When I do the below I'm able to start and stop apache instance alright
$ sudo -u wsadm -I -H
$ cd /web/apps/perf/apache/2.4.41/https-harsh/bin
$ ./apachectl -k start
However, when I ssh directly to the destination host using wsadm user and try to start the instance I get the below error:
$ ./apachectl -k start
httpd: Syntax error on line 531 of /web/apps/perf/apache/2.4.41/https-harsh/conf/httpd.conf: Cannot load /web/apps/perf/apache/2.4.41/https-harsh/plugin_lib/lib/mod_wl_24.so into server: ld.so.1: httpd: libonssys.so: open failed: No such file or directory
I was suggested to source the profile so I did the below:
`. /home/wsadm/.profile
source /home/wsadm/.profile
However, I still get the same error starting apache webserver instance.
cat /home/wsadm/.profile
…..
.….
WLS_PLUGIN_HOME=/web/apps/perf/sjsws/webserver7/wlsplugins/wlsplugin-1.1
LD_LIBRARY_PATH_64=${WLS_PLUGIN_HOME}/lib:${LD_LIBRARY_PATH_64}
export WLS_PLUGIN_HOME LD_LIBRARY_PATH LD_LIBRARY_PATH_64
…..
As you can see the .profile does not even have apache folder mentioned for any of the variables or paths. Sorry, if I'm taking the thought process in the wrong direction by mentioning the contents of the .profile
Can you please suggest ?
It says it in the error: Syntax Error
httpd: Syntax error on line 531 of /web/apps/perf/apache/2.4.41/https-harsh/conf/httpd.conf: Cannot load /web/apps/perf/apache/2.4.41/https-harsh/plugin_lib/lib/mod_wl_24.so into server: ld.so.1: httpd: libonssys.so: open failed: No such file or directory
This should answer your question: https://www.experts-exchange.com/questions/29088492/Configuration-problem-with-weblogic-connector-module-mod-wl-24-and-apache-2-4-6.html
I was running an older version of MAMP and found I couldn't install a current version of Wordpress because it required at least PHP version 5.2 so I updated MAMP which now runs 7.4.2. Things seemed to be fine with the update (sites are running) until I tried using interconnect's Search-Replace-DB on a project. Using the GUI, I got an AJAX error. The docs stated in the event of an AJAX error, I should follow the cli instructions; but when I do, I get either one of two errors no matter which approach I take:
db: SQLSTATE[HY000] [2002] Connection refused
db: SQLSTATE[HY000] [2002] No such file or directory
My wp-config.php looks like:
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', 'root');
/** MySQL hostname */
define('DB_HOST', '127.0.0.1');
I read a SO post getting "db: SQLSTATE[HY000] [2002] Connection refused" error on Mac with MAMP and am trying the recommendation to replace the line '#!/usr/bin/php -q' with '#!/usr/bin/env php -q' in the rdb.cli.php file.
The cli commands I've tried:
//posts suggest using 8889 but my mamp seems to run on :8888?
//using localhost string
php srdb.cli.php -h localhost -n test -u root -proot -s oldname.org -r localhost:8889 -v true -z
//using ip
php srdb.cli.php -h 127.0.0.1 -n test -u root -proot -s oldname.org -r localhost:8889 -v true -z
//using localhost string
php srdb.cli.php -h localhost -n test -u root -proot -s oldname.org -r localhost:8888 -v true -z
//using ip
php srdb.cli.php -h 127.0.0.1 -n test -u root -proot -s oldname.org -r localhost:8888 -v true -z
//Using path explicitly with ip
/Applications/MAMP/bin/php/php7.4.2/bin/php srdb.cli.php -h 127.0.0.1 -u root -n test -proot -s oldname.org -r localhost:/8888
After changing the line srdb.cli.php, I still can't connect. At this point, I don't know if it's php or mysql that is having an issue, if the db is corrupted, or if the environmental variables/paths/links are off after updating MAMP or how to go about determining these things. Any insights would be greatly appreciated.
For anyone else encountering this issue, specifying the full location paths for both the MAMP php binary (which will execute the script) and the search-replace-db script in the cli solved the problem. I put the strings to search for and replace with in quotes. I also increased the php timeout limit in wp-config.php with: set_time_limit(3000);
Note that how you specify localhost should be consistent between the options passed to the script and what's in your wp-config.php file (if you use localhost in wp-config, use localhost in the script as well)
/Applications/MAMP/bin/php/php7.4.2/bin/php /Applications/MAMP/htdocs/test/Search-Replace-DB-master/srdb.cli.php -h localhost -u root -proot --port 8889 -n test -s "http://olddomain.com" -r "http://localhost:8888/test" -v true```
I'm trying to bootstrap a node sudo knife bootstrap 10.40.116.100 --ssh-user ubuntu --sudo --identity-file /home
/ec2-user/.ssh/ihies-east-1.pem -N newsite -r "recipe[pilot_sec-update]","recipe[vmpilot]" and I get ERROR: Net::SSH::HostKeyMismatch: fingerprint 16:78:0d:29:7d:5e:cf:25:01:92:df:3a:94:64:5d:b6 does not match for "10.40.116.100"
1. i can ssh with ssh -i /home/ec2-user/.ssh/ihies-east-1.pem decs#10.40.116.100
2. i cleared my known-host file
Still get the error
As https://stackoverflow.com/users/78722/coderanger sugested to clear the known host from the root user as well and that fixed it
I am creating a vm in openstack (linux vm) and launching ansible script from there.I am getting following ssh error.
---
- hosts: licproxy
user: my-user
sudo: yes
tasks:
- name: Install tinyproxy#
command: sudo apt-get install tinyproxy
- name: Update tinyproxy
command: sudo apt-get update
- name: Install bind9
shell: yes '' | sudo apt-get install bind9
Though I am directly able to ssh to machine 10.32.1.40 from the linux box in openstack admin-keydev29
PLAY [licproxy] ***********************************************************
GATHERING FACTS ***************************************************************
<10.32.1.40> ESTABLISH CONNECTION FOR USER: my-user
<10.32.1.40> REMOTE_MODULE setup
<10.32.1.40> EXEC ssh -C -tt -vvv -o StrictHostKeyChecking=no -o IdentityFile="/opt/apps/installer/tenant-dev29/ssh/admin-key-dev29" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=my-user -o ConnectTimeout=10 10.32.1.40 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1450797442.33-90087292637238 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1450797442.33-90087292637238 && echo $HOME/.ansible/tmp/ansible-tmp-1450797442.33-90087292637238'
EXEC previous known host file not found for 10.32.1.40
fatal: [10.32.1.40] => SSH Error: ssh: connect to host 10.32.1.40 port 22: Connection refused
while connecting to 10.32.1.40:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
TASK: [Install tinyproxy] *****************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
I removed from known_host entry and ran the script again it is still showing me same message.
UPDATE
I observed manual ssh is working fine.but ansible script is giving ssh error.
I logged in to the newly created vm using ssh key and checked /var/log/auth.log file
Dec 30 13:00:33 licproxy-vm sshd[1184]: Server listening on :: port 22.
Dec 30 13:01:10 licproxy-vm sshd[1448]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Dec 30 13:01:10 licproxy-vm sshd[1448]: Connection closed by 192.168.0.106 [preauth]
Dec 30 13:01:32 licproxy-vm sshd[1450]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
The vm has sshd version OpenSSH_6.6.1 version
I checked /etc/ssh folder i found ssh_host_ed25519_key and ssh_host_ed25519_key.pub missing
I created those file using command ssh-keygen -A.
Now I want to know why these files are missing from ssh folder.Is this a bug?
Problem was because of ssh port 22.The port was not up.
I added the following code.which basically wait for ssh port to come up.
while ! nc -z $PROXY_SERVER_IP 22; do
sleep 10s
done
Initialization is done but then gives following error
Authorization failed: generic failure at /usr/lib/git-core/git-svn line 1928
Your hostname is missing in
cat /etc/hosts
Edit file /etc/hosts and add
127.0.0.1 hostname