Can’t connect to fake AP with airbase-ng

I use kali-rolling on a virutal machine and I try to set up a fake access point using airbase-ng, but my devices won’t connect to it whatsoever. My steps are:

I put my wirless adapter in monitor mode with airmon-ng and then run airbase-ng to clone my original AP, then I set up the configuration for the dhcp server in /etc/dhcp/dhcpd.conf as follows:

authoritative; default-lease-time 600; max-lease-time 7200; subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option domain-name-servers 8.8.8.8; option routers 192.168.1.1; range 192.168.1.10 192.168.1.100; } 

Interfaces in /etc/default/isc-dhcp-server:

INTERFACESv4="at0" INTERFACESv6="" 

I then fire up the interface at0:

ifconfig at0 up ifconfig at0 192.168.2.1 netmask 255.255.255.0 route add default gw 192.168.1.1 at0 

And to give my clients network access I set up iptables to forward traffic sent to my fake AP to the interface eth0 which is bridged to the ethernet interface of my host machine.

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE iptables --append FORWARD -j ACCEPT --in-interface at0 echo 1 > /proc/sys/net/ipv4/ip_forward 

After that, I try to connect to this AP from any device, and none is able to connect to it, just says “Obtaining IP address” and that the AP is saved and then nothing. Could someone help me figure out what is going wrong?

Can’t connect to MySQL server on ‘127.0.0.1’ (61)

Ao tentar abrir uma conexão com o meu banco fui surpreendido com essa mensagem.

Can’t connect to MySQL server on ‘127.0.0.1’ (61)

Mas estava funcionando normalmente, não se por conta da instalação de alguns pacotes com o brew. E quando fui usar ele simplesmente parou e me mostrou essa mensagem ao tentar entrar com o Navcat.

Vi que alguns feras do SO(en) falavam para usar o comando :

mysql -u root -p 

Ao conseguir mandar ele em meu terminal apareceu uma mensagem em um arquivo de configuração.

Can’t read dir of ‘/usr/local/etc/my.cnf.d’ (Errcode: 2 “No such file or directory”)

E ao comentar essa linha.

#!includedir /usr/local/etc/my.cnf.d 

E reiniciar o mariadb com o comando:

brew services start mariadb 

Eureca! Voltou a funcionar.

Mas por que este arquivo estava funcionando e de repente parou, alguém pode me explicar se este arquivo é muito importante, fiz uma gambiarra que deu certo? Devo reverter e procurar alguma coisa ? Que erro é esse: Can’t connect to MySQL server on ‘127.0.0.1’ (61) ?

Lembrando ja está funcionando! Mas quero entender o que pode ter acontecido.

Can’t connect to MySQL server on ‘127.0.0.1’ (61)

Ao tentar abrir uma conexão com o meu banco fui surpreendido com essa mensagem.

Can’t connect to MySQL server on ‘127.0.0.1’ (61)

Mas estava funcionando normalmente, não se por conta da instalação de alguns pacotes com o brew. E quando fui usar ele simplesmente parou e me mostrou essa mensagem ao tentar entrar com o Navcat.

Vi que alguns feras do SO(en) falavam para usar o comando :

mysql -u root -p 

Ao conseguir mandar ele em meu terminal apareceu uma mensagem em um arquivo de configuração.

Can’t read dir of ‘/usr/local/etc/my.cnf.d’ (Errcode: 2 “No such file or directory”)

E ao comentar essa linha.

#!includedir /usr/local/etc/my.cnf.d 

E reiniciar o mariadb com o comando:

brew services start mariadb 

Eureca! Voltou a funcionar.

Mas por que este arquivo estava funcionando e de repente parou, alguém pode me explicar se este arquivo é muito importante, fiz uma gambiarra que deu certo? Devo reverter e procurar alguma coisa ? Que erro é esse: Can’t connect to MySQL server on ‘127.0.0.1’ (61) ?

Lembrando ja está funcionando! Mas quero entender o que pode ter acontecido.

Unable to connect hive to local window machine. Getting Connection error: java.sql.SQLException: Could not open client transport with JDBC Uri

I am trying to make connection between hive-server2 and my local window machine with python.I have Connection string and a keystore file. I am using Jaydebeapi python module to solve this issue. The various .jar file I am using: 1) HiveJDBC4.jar
2) hive_metastore.jar
3) hive-service-0.13.1.jar
4) libfb303-0.9.0.jar
5) libthrift-0.9.0.jar
6) log4j-1.2.14.jar
7) ql.jar
8) slf4j-api-1.5.8.jar
9) slf4j-log4j12-1.5.8.jar
10) TCLIServiceClient.jar
11) httpclient-4.3.3.jar
12) httpcore-4.3.jar
13) guava-16.0.1.jar
14) hadoop-common-2.2.0.jar
15) hive-common-0.10.0.jar

My connection string is:

jdbc:hive2://example@domain.com:port/;   ssl=true;   sslTrustStore=FileKey.jks;   trustStorePassword=password;   transportMode=http;   httpPath=gateway/default/hive    

I have tried other modules but for the given problem and inputs, Jaydebeapi approach I found to be more valid here. I have written python code:

import jaydebeapi Jars = ['C:/Cloudera_HiveJDBC/HiveJDBC4.jar',    'C:/Cloudera_HiveJDBC/hive_metastore.jar',    'C:/Cloudera_HiveJDBC/hive-service-0.13.1.jar',    'C:/Cloudera_HiveJDBC/libfb303-0.9.0.jar',    'C:/Cloudera_HiveJDBC/libthrift-0.9.0.jar',    'C:/Cloudera_HiveJDBC/log4j-1.2.14.jar',    'C:/Cloudera_HiveJDBC/ql.jar',    'C:/Cloudera_HiveJDBC/slf4j-api-1.5.8.jar',    'C:/Cloudera_HiveJDBC/slf4j-log4j12-1.5.8.jar',    'C:/Cloudera_HiveJDBC/TCLIServiceClient.jar',    'C:/Cloudera_HiveJDBC/httpclient-4.3.3.jar',    'C:/Cloudera_HiveJDBC/httpcore-4.3.jar',    'C:/Cloudera_HiveJDBC/guava-16.0.1.jar',    'C:/Cloudera_HiveJDBC/hadoop-common-2.2.0.jar',    'C:/Cloudera_HiveJDBC/hive-common-0.10.0.jar'] conn_hive = jaydebeapi.connect('org.apache.hive.jdbc.HiveDriver','jdbc:hive2://example@domain.com:port/',                            {'ssl':"true",                            'sslTrustStore':"Filekey.jks",                            'trustStorePassword':"password",                             'transportMode':"http",                             'httpPath':"gateway/default/hive"                            },                            jars= Jars) cursor = conn_hive.cursor() 

But I am getting an error:

java.sql.SQLExceptionPyRaisable: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://example@domain.com:port/: null 

Is there any problem with the code, in approach or lack of Jar Files I have added. Is there any other alternatives that I can use for giving best results.

Fail to connect to CloudMQTT

Got a CloudMQTT Server and I want to connect to it from C# with a client Using uPLibrary.Networking.M2Mqtt

I managed to create a client but it doesn’t connect to the server.

_client = new MqttClient(“m24.cloudmqtt.com”,10307,true,null,null,MqttSslProtocols.TLSv1_0);

_client.Connect(“id”, “someUsername”, “somePassword”);

This is the Exception i get Exception thrown: ‘uPLibrary.Networking.M2Mqtt.Exceptions.MqttConnectionException’ in M2Mqtt.Net.dll

Blade OS Won’t Connect to Network through iLO [on hold]

I am very new to working with servers, but I have a blade server with HP Proliant blades that I cannot access the internet on the installed OS. I am plugging the Ethernet from the router into the OA port and using iLO to log into the blade. The only connection Linux detects is a bridge, virbr0. I have tried RHEL and Centos.

I am sure it is something simple I am missing, I’ve tried configuring the connection every possible way with the same result though.

Thanks in advance and apologies for my relative incompetence!

3 monitor wont connect after mojave update worked fine with el captan

I had 3 external monitors prior to mojave upgrade. Now it will connect any 2 does not matter which 2. I will not connect 3 and can have the hdmi and dvi or dvi and vga or vga and hdmi but will wont connect all 3 at same time. I need this. thoughts? I should clairafy it wont detect the 3rd monitor but if i unplug either of the 2 is does see then its see 3rd.