Trying to install wifi adaptor to kali linux manually

I have a huaweii matebookd, with a VM box and kali linux installed.
Bought a Wireless adapter (TL-WN725N), and although it appears on my VM, it does not appear on my kali.
I am trying to manually install it using these instructions:
1)You will need to blacklist another driver in order to use this one.
2)”echo “blacklist r8188eu” > “/etc/modprobe.d/realtek.conf”
3)”make && make install”
4)Reboot in order to blacklist and load the new driver/module.

However, when I am on step 3, this error appears:
make *** no rule to make target “install”. Stop.

Then it says no targets specified and no makefile found. Stop.

Any suggestions?

Go to Source
Author: Pedro

Need to delete the sidebar widget area and have the page a full page rather than just have a blank widget area

A recent post on how to remove the archives and meta from the sidebar answered a question I had and I was successful to have the left side of the page blank. The post was at Can not Remove Archives and Meta from Sidebar.

But, while it left the sidebar area void of text, I need the sidebar area to be deleted so it’s a full page. I have some pricing tables that I want to be the only thing on the page but due to the template in WorkScout, the pricing tables are on the right side of the page leaving a lot of white space on the left side where the widgets were. I have tried configuring the page to be “full page using Elementor” which has worked in the past for other needs, but, it is not creating the full page I need for this pricing table page.

Am I missing a step or is this not possible? How can I delete the old widget area and have it full page.

I am new to WordPress so I appreciate the help and will appreciate step by step instructions.
Thank you in advance!

Go to Source
Author: JoN

GitHub: Is it possible to view a list of all the projects a member has contributed to?

In the GitHub web-app user interface, is it possible to view a list of all the projects to which you have contributed?

What about a list of all the projects to which another user has contributed?

Go to Source
Author: RockPaperLizard

Understanding TS 133 501 (5G) Step 2 of EAP-AKA’

I got a question dealing with the EAP-AKA’ used in 5G to authenticate clients coming from a 3GPP-Network.

I read the latest specification on ETSI. The problem which I have is based on Step 2 on Page 37/38, where it says (at least I understood it like that), that when the UDM/ARPF got the SUCI it shall continue as shown in RFC 5448 (a description of a EAP-AKA’), otherwise it shall follows the EAP-AKA’ shown in the specification (TS 133 501).

That’s what confuses me. Are there really two different implementations of the EAP-AKA’? I tried to layer those two, but ntl for me those two are different, due to the message flow.
Is that correct?

Go to Source
Author: Sheena

What is a recommended authentication architecture for a front GUI app that I want to control but that will be used by others to control their servers?

I have a front end (WEB GUI) app that I designed (Python for now + JavaScript in the future) that I use to access a controller, it uses REST APIs.

I want to publish this app in the cloud so that others could use it.

The biggest issue I am seeing is the security side as the app needs to authenticate with the remote server (a controller itself) and start sending tasks to the controller that will translate that in internal REST APIs to control for processes on downstream servers

Is there an authentication flow that will guarantee the owners of the controllers that I (the publisher of the front end) do not intercept the authentication flow and I gain unwanted access to their servers ?

My idea is to use a two steps authentication/authorization process like below. Is there a better way?
Please edit this diagram if you have suggestions
enter image description here

Go to Source
Author: MiniMe

Is there a way to make Prometheus to scrape only the metrics which are present in Grafana?

As a customer of Grafna Cloud, I need to minimize the number of DataSeries that are being sent (remote_write) to Grafana Cloud, to avoid being overcharged for metrics that I don’t really use.

This can be done by filtering out the metrics that I don’t use in my Grafana dashboards, is there a way to do that automatically? Without having to write down all the metric_relabel_configs rules manually?

Go to Source
Author: Meir Gabay

c++: How to exchange input and output for this code?

Here is the code below. The code is about RSA.

#include "rsa.h"

int main()
  RSA rsa(13, 77);
  rsa.crypt("plainFile", "cipherFile");
  return 0;


#include "rsa.h"
#include <fstream>
#include <cmath>

RSA :: RSA(int k, int m)
: key(k), modulus(m)
RSA :: ~RSA()
void RSA :: crypt(const char* inFile, const char* outFile)
  ifstream  istrm(inFile, ios :: in);   
  ofstream  ostrm(outFile, ios :: out);
  int base, result;
  while (istrm >> base)
    result = modulo(base, key, modulus);
    ostrm << result;
    ostrm << ' ';
int RSA:: modulo(int base, int power, int modulus)
  int result = 1;
  for (int i = 0; i < power; i++)
    result = (result * base) % modulus;
  return result;


#ifndef RSA_H
#define RSA_H
#include <iostream>
using namespace std;

class RSA
    int key;
    int modulus;
    int modulo(int base, int power, int modulus);
    RSA(int key, int modulus);
    void crypt(const char* inFile, const char* outFile);

The output should be

Contents of Plaintext File:
14 27 12 45 9 64 22 8
Contents of Ciphertext File:
49 48 12 45 58 36 22 50

Now I would like to make this output become input, and get this output

#include “rsa.h”
int main ()
RSA rsa (13, 77); // 13 is the value of e and 77 is value of n
rsa.crypt (“plainFile”, “cipherFile”); return 0;

I try to exchange input and output but don’t know where to start, can I just change a little bit to do that? or I need to rewrite the code? anyone can help? How should I do it? Thanks.

Go to Source
Author: Maggie L

SELinux writes “invalid argument” after setting permissive mode

I’ve recently upgraded my Fedora 32 Server on my server and used this guide to mirror my system drives. This works totally fine, but in step 9 I had to disable SELinux.
The only differences I took is:

  • instead of GPT I had to use MBR
  • instead of naming the system raid “root”, I named it “sys”

Now I just wanted to turn it on again (permissive mode – just in case), relabeled the filesystem with $ touch /.autorelabel ; reboot and waited. After another restart, my system is nearly broken.

I seems to run in single-user mode, no network. Inspecting my system tells me:

$ getenforce

$ ls -lZd /*
lrwxrwxrwx.   1 root root  ?                                        7 Jan 28 19:30 /bin -> usr/bin
dr-xr-xr-x.   6 root root  system_u:object_r:boot_t:s0           1024 Jun 27 07:50 /boot
drwxr-xr-x.  20 root root  system_u:object_r:device_t:s0         4460 Jun 28 16:18 /dev
drwxr-xr-x. 105 root root  system_u:object_r:etc_t:s0           12288 Jun 28 21:18 /etc
drwxr-xr-x.   2 root root  system_u:object_r:home_root_t:s0      4096 Jun 28 19:30 /home
lrwxrwxrwx.   1 root root  ?                                        7 Jun 28 19:30 /lib -> usr/lib
lrwxrwxrwx.   1 root root  ?                                        9 Jun 28 19:30 /lib64 -> usr/lib64
drwx------.   2 root root  ?                                    16384 Jun 21 2016  /lost+found
drwxr-xr-x.   2 root root  ?                                     4096 Jun 28 19:30 /media
drwxr-xr-x.   2 root root  ?                                     4096 Jun 28 19:30 /mnt
drwxr-xr-x.   3 root root  ?                                     4096 Jun 21 19:30 /opt
dr-xr-xr-x. 158 root root  system_u:object_r:proc_t:s0              0 Jun 28 2020  /proc
dr-xr-x---.   4 root root  ?                                     4096 Jun 28 19:30 /root
drwxr-xr-x.  32 root root  system_u:object_r:var_run_t:s0        1540 Jun 28 15:48 /run
lrwxrwxrwx.   1 root root  ?                                        8 Jun 28 19:30 /sbin -> usr/sbin
drwxr-xr-x.   2 root root  system_u:object_r:var_t:s0            4096 Jun 28 19:30 /srv
dr-xr-xr-x.  13 root root  system_u:object_r:sysfs_t:s0             0 Jun 28 15:48 /sys
drwxrwxrwt.   8 root root  system_u:object_r:tmp_t:s0             440 Jun 28 16:46 /tmp
drwxr-xr-x.  12 root root  ?                                     4096 Jun 21 12:39 /usr
drwxr-xr-x.  21 root root  system_u:object_r:var_t:s0            4096 Jun 21 13:37 /var

$ ausearch -m AVC,USER_AVC,SELINUX_ERR -ts today
tells me a lot about "USER_AVC" denied {status} and tcontext=unlabeld and so on
if relevant, I'll try to exactly re-type them here (single-user mode)

What me really bothers, I do not understand why there are “?” (question marks) instead of labels.
Any hints on how to repair this? I really want to use SELinux, but I can’t understand whats going on here. Any help is welcome.

Go to Source
Author: Michael Hirschler

Not able to connect to Wireless network in Ubuntu 20.04

I am using Asus TUF FX505DT with the Wireless interface Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter.
It sometimes stops displaying the available Wireless networks and sometimes it displays the available networks but I am not able to connect to any network and it keeps on asking for the Wifi password again and again or keep trying to connect to the network.

$ sudo iwconfig
wlp4s0    IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short  long limit:16   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
$ lspci 
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter (rev ff)
$ sudo lshw -C network
       description: Wireless interface
       product: RTL8822BE 802.11a/b/g/n/ac WiFi adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: wlp4s0
       version: ff
       serial: dc:f5:05:b1:8f:81
       width: 32 bits
       clock: 66MHz
       capabilities: bus_master vga_palette cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtw_pci driverversion=5.4.0-37-generic firmware=N/A latency=255 link=no maxlatency=255 mingnt=255 multicast=yes wireless=IEEE 802.11
       resources: irq:69 ioport:d000(size=256) memory:f7700000-f770ffff

Go to Source
Author: Somil Singla

Are there security reasons for prohibiting universal mac address modification?


In a standard 48-bit MAC address, the 7th (most significant) bit specifies whether it is a universally-administered address (UAA) or a locally-administered address (LAA).

If it is 0, then the MAC address is a UAA and the first 24-bits are the organizationally-unique identifier (OUI) of the manufacturer of the network interface card (NIC).

If it is 1, then the MAC address is just an LAA.


Many drivers and NIC’s often allow users to modify the MAC address of their device.

But, it seems Windows does not allow modifying mac addresses to universal ones (i.e., UAA’s):

What is the reason for this restriction? Are there security implications if this was not the case? Or, perhaps, is this merely just to prevent someone from spoofing a device as some legitimate company’s network communications product? (to their ISP)

Go to Source
Author: ManRow

Package apache2 has no installation candidate (Kali Linux)

I’ve been trying for the past few days to install Apache2 on Kali Linux. No matter what I’ve tried, when I do sudo apt install apache2 it says that there’s no installation candidate for the package. I’m fairly new to Linux. Please help.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apache2' has no installation candidate

Go to Source
Author: bl4d3

how to add li and a classes and id to the nav menu with code?

I have registered nav menu. here is the code

                            array (
                                    'theme_location' => 'top-menu',
                                    'menu_id' => 'navbarSupportedContent',
                                    'menu_class' => 'navbar-nav ml-auto',
                                    'container' => 'ul',
                );  ?>

but li and a have classes that are not applied to the nav menu wordpress code. so how to add them?

<li id="f-one" class="nav-item"><a class="nav-link" href="#home">Home</a></li>

so any of f-one id or nav-item, nav-link added to the wordpress nav menu style. how to add them please?

Go to Source
Author: social

Calculate the total on events with two time conditions

I have a table in BigQuery that looks something like this:

    schema = [
        bigquery.SchemaField('timestamp', 'TIMESTAMP', mode='REQUIRED', description='Data point timestamp'),
        bigquery.SchemaField('event_id', 'STRING', description='EventID'),

The table has a fairly large dataset, and I’m trying to find write an efficient query that returns the number of events that happened in the last 24 hours but also within the last N days. That is, two different records with different conditions but the same event_id. I don’t care so much about the actual event_id, but rather the distribution.

Ideally, the query would return something like this:

7_days: 20
30_days: 15
60_days: 7

If it’s impossible to do this in pure SQL, I also have Pandas available at my disposal.

Go to Source
Author: vpetersson

How to use this google api console developer tools script for copy clone youtube watch later playlist?

How to use this google api console developer tools script for copy clone youtube watch later playlist? The instructions are old. Now google api console developer tools looks different so i cant find correct way to implement it.

Go to Source
Author: Kangarooo

The publish-subscribe pattern: garbage-collecting old subscriptions

I’ve been studying distributed systems design, in particular the Udi Dahan’s class. He talks about the publish-subscribe pattern as a common pattern in messaging-oriented designs. There’s obviously a clear point in time when subscriptions to a publisher happen. However—and I might be missing something—he spent no time discussing unsubscribes.

So my question is—given a distributed system with components that evolve over time, how do popular implementations of this pattern deal with stale subscriptions? I understand that in a optimal situation, there are points in time when the subscriber explicitly declares that it is no longer interested in messages from a given source (maybe on clean shutdown, maybe on some kind of decommissioning of the component)… but given faulty networks, software and hardware, I can imagine the case where the publisher keeps thinking the subscriber still waits for its messages despite not existing for years, and no-longer-necessary messages clogging the messaging system.

Go to Source
Author: liori