rfhs / rfctf-container

scripts that go in the rfctf container
BSD 2-Clause "Simplified" License
17 stars 9 forks source link

Bug: Fix missing kmod-tun for kali container #16

Closed UsakoSenpai closed 3 months ago

UsakoSenpai commented 9 months ago

Problem:

┌──(root㉿33867df2a07d)-[~]
└─# depmod
depmod: ERROR: could not open directory /lib/modules/6.1.5-pentoo: No such file or directory
depmod: FATAL: could not search modules: No such file or directory

┌──(root㉿33867df2a07d)-[~]
└─# modprobe tun
modprobe: FATAL: Module tun not found in directory /lib/modules/6.1.5-pentoo

Expected result

Steps to Reproduce

  1. Start up the ctf environment
  2. ssh to the kali container
  3. put one of the available wireless interfaces into monitor mode
  4. attempt to run any airbase-ng command using that interface
  5. You will receive an error that kmod-tun is not configured/available, and ask you to run modprobe tun
  6. Running modprobe tun responds that the mod is not found.