Questions tagged [kali-linux]

Kali Linux is a special-purpose Linux distribution for penetration testing and security auditing, based on Debian. KALI LINUX QUESTIONS ON STACK OVERFLOW MUST BE PROGRAMMING RELATED. Questions about problems getting something to work on Kali, why Kali is so different from other Linux distributions, etc., are generally off-topic for Stack Overflow.

Kali Linux is a special-purpose Linux distribution for penetration testing and security auditing, based on Debian.

Nearly all questions about Kali are considered off-topic not only on Stack Overflow, but on its sister sites (e.g. Server Fault, Super User, Unix and Linux Stack Exchange). For more information about why we have this policy, please read the following FAQ: Why is Kali Linux so hard to set up? Why won't people help me?

275 questions
-1
votes
1 answer

How to define the alias with all the files including hidden files, list numbering, total lines in Linux?

I have written a command but it displays only the total lines. I want total lines with numbering and their name. If I remove wc -l it only shows the numbering with their name. I want all this command to be execute at ones. alias abc='ls -a | nl | wc…
-1
votes
1 answer

How do i correct this error ? print("\r{+} Packets Send: " + str(sent_packets_count), end="") ^ SyntaxError: invalid syntax

I am learning arp spoofing using kali Linux, when I run my code this what I get. How can I correct that error?enter image description here Below is my code: **#!/usr/bin/env python import scapy.all as scapy import time target_ip =…
-1
votes
1 answer

azure-cli-core 2.17.1 has requirement msrestazure>=0.6.3, but you'll have msrestazure 0.6.2 which is incompatible

I have az cli installed on my Kali Linux. The az --version information shows an upgrade available as shown below. kali@kali:~$ az --version azure-cli 2.16.0 * core 2.16.0 * telemetry …
whoami
  • 1,689
  • 3
  • 22
  • 45
-1
votes
1 answer

Why my code doesn't work like I want? And how can I check the validty of the date?

I want to let the user insert her name and check if he inserts char just otherwise let him insert a valid name, and insert a 6 integer number for the card number otherwise let him insert a valid number then insert the expiration date. Now, How can I…
Hadeel
  • 1
  • 1
-1
votes
1 answer

WordPress broken app to try wpscan kali tool

This is my first question. I just learn how to use WPscan. "WordPress Security Scanner by the WPScan Team" Does there any WordPress broken app to test what I've learned from WPscan?
Muhannad
  • 3
  • 2
-1
votes
2 answers

How do i setup Kali Linux while in text mode

I am a newbie at Linux, in fact this is the first time i'm using linux. Having installed Kali Linux i keep getting the text mode display, a youtube tutorial shows that i need a display manager and how to set it up, but i can't run sudo apt-get…
Joel Tanko
  • 15
  • 7
-1
votes
1 answer

Generate rule-based passwords with John the Ripper

I am trying to recover a password I have not used in a long time. I know the words used in the passphrase, but I do not remember exactly the character substitutions, and upper/lower case I have used. I only remember some, and know the possibilities…
lyndhurst
  • 33
  • 4
-1
votes
1 answer

Kali or Ubuntu which is better for Machine Learning and Deep Learning

I am beginner to learning ML and DL. I already have faced some problems in windows operating system that's why I want moved on Linux operating system but I am confused which one is better to learn ML and DL. Which problems I have faced in windows…
Imdadul Haque
  • 1,635
  • 5
  • 23
  • 44
-1
votes
2 answers

How to get script to read file, accept user input, and display specific line from user input

I am trying to make this code so the user is asked what line to search, then they enter it, and then you display the line the user is wanting. import os f = open("input_file_lab_1.txt","r") allData = f.read()#3 cleanedData =…
nicole
  • 1
-1
votes
1 answer

Make a custom script run when it detects a new metasploit sessions

How could I make a script that runs when the metasploit handler receives a new session? By the way, the script should check if a file exists, and if it doesn't, it should upload a file to the victim. I'm pretty sure I know how to write the script, I…
Robert
  • 1
  • 2
-1
votes
1 answer

wine not found for python in kali

When running a python script in Linux its throwing an error, wine: cannot find '/root/.wine/drive_c/Python27/Scripts/pyinstaller.exe' And installing wine from also fails. OS: Kali Linux 2020 Python-version: 3.6
Luna
  • 21
  • 6
-1
votes
2 answers

Installing idle3 on kali 2020.2

I successfully installed python 3.8.3 on kali linux. However, i am unable to install idle3. I tried several methods suggested but none work. One of the methods I used was "sudo apt-get install idle3 " the error message it gives me is "E: Unable to…
-1
votes
2 answers

How to I run scapy and netfilterqueue at the same time?

I am working on a dns_spoof school project. I have imported the following to my program: import netfilterqueue import scapy.all as scapy My problem is that when I try to run the program via terminal with the python2 interpreter scapy doesn't work…
CodingStudent
  • 179
  • 1
  • 2
  • 12
-1
votes
1 answer

SQL Error 1193 when attempting to import database

So I've downloaded a huge database from the internet and I'm trying to import it using mysql -t < data_dump.sql After running this, I get the following output: ERROR 1193 (HY000) at line 5: Unknown system variable 'statement_timeout' I tried doing…
-1
votes
1 answer

How can I fix the .py error in kali linux?

trying to use kali linux to run my Phoneinfoga tool, but when I run the command needed to use this tool, which is python3 phoneinfoga.py -n (the target number) it gives me an error that says python3: can't open file 'phoneinfoga.py': [Errno 2]…