Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS?? #84

Open
Abib-web opened this issue Jan 3, 2023 · 6 comments

Comments

@Abib-web
Copy link

Abib-web commented Jan 3, 2023

Hello,
I follow your online course, and each time I run the fat.py script on the dlink firmware, I always have the address 0.0.0.0 instead of 192.168.0.1 how to solve this problem

@extremecoders-re
Copy link
Collaborator

Please share a screenshot. Also try in a clean Ubuntu VM.

@Abib-web
Copy link
Author

Abib-web commented Jan 4, 2023

thank you for your response, but i have change my version of attifyos so i have anoters issues,

this message is normal ? but i cant run web page

firmadyne git:(master) ✗ ./fat.py 

	Welcome to the Firmware Analysis Toolkit - v0.1
	Offensive IoT Exploitation Training  - http://offensiveiotexploitation.com
	By Attify - https://attify.com  | @attifyme
	
Enter the name or absolute path of the firmware you want to analyse : Dlink_firmware.bin
Enter the brand of the firmware : Dlink
Dlink_firmware.bin
Now going to extract the firmware. Hold on..
/home/oit/tools/firmadyne/sources/extractor/extractor.py -b Dlink -sql 127.0.0.1 -np -nk "Dlink_firmware.bin" images 
test
The database ID is 1
Getting image type
Password for user firmadyne: 
Found image type of  mipsel
Putting information to database
Tar2DB
Creating Image
Executing command 

sudo /home/oit/tools/firmadyne/scripts/makeImage.sh 1
Password for user firmadyne: 
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xfa790078.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Building a new DOS disklabel with disk identifier 0xa7791a0c.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
mke2fs 1.42.9 (4-Feb-2014)
Please check the makeImage function
Everything is done for the image id 1
Setting up the network connection
Password for user firmadyne: 
qemu: terminating on signal 2 from pid 3318
Querying database for architecture... mipsel
Running firmware 1: terminating after 60 secs...
Inferring network...
Interfaces: [('br0', '192.168.0.1')]
Done!

Running the firmware finally : 
WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to load the 8021q module, or maybe you are not using PROCFS??

@Abib-web Abib-web changed the title The address is always at 0.0.0.0 WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS?? Jan 4, 2023
@Abib-web
Copy link
Author

Abib-web commented Jan 4, 2023

If i use if I enter the enter key

Running the firmware finally : 
WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to load the 8021q module, or maybe you are not using PROCFS??

Creating TAP device tap1...
Set 'tap1' persistent and owned by uid 0
Initializing VLAN...
Added VLAN with VID == 0 to IF -:tap1:-
Bringing up TAP device...
Adding route to 192.168.0.1...
Starting emulation of firmware... Done!
The emulated firmware may not be accessible while booting.
Press any key to destroy the network and shutdown emulation.
Deleting route...
Bringing down TAP device...
Removing VLAN...
Removed VLAN -:tap1.0:-
Deleting TAP device tap1... Set 'tap1' nonpersistent
Done!

@extremecoders-re
Copy link
Collaborator

Looks like you are using an old version (0.1) of firmware-analysis-toolkit. The interface of the current version (0.3) is different.
Please try with the latest version of FAT on a Ubuntu 20.04 VM.

@Abib-web
Copy link
Author

Abib-web commented Jan 5, 2023

I installed on ubuntu 22.04lts, but still the same problem with the address always 0x00000

[ 22.576000] firmadyne: __inet_insert_ifa[PID: 275 (ifconfig)]: device:br0 ifa:0x00000000

@Abib-web
Copy link
Author

Abib-web commented Jan 6, 2023

still the same problem, the address is still 0x000000 and the output on the terminal is the same.

The ping does not work on 192.168.0.1 but it works on 192.168.0.2 however neither of these two addresses is accessible on the browser

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants