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

ifconfig only grabs 4 attributes #28

Closed
dkran opened this issue Oct 30, 2016 · 3 comments
Closed

ifconfig only grabs 4 attributes #28

dkran opened this issue Oct 30, 2016 · 3 comments

Comments

@dkran
Copy link

dkran commented Oct 30, 2016

Hi, on my system (kali / debian), ifconfig only gets 5 attributes:

  • interface
  • broadcast
  • multicast
  • running
  • up

I'd like to submit a pull request to fix them, but I wanted to know if you would consider it and if you're looking for help. For example, on your match for ipv4_address, you use inet addr. For this release and ifconfig, it uses simply inet for ipv4 and inet6 for ipv6.

For MAC address, it uses ether (I know it kind of seems unrelated) instead of HWaddr. Right now in my app I'm using other modules and joining the objects together, but I'd like to simplify. Plus Kali linux is a great use for your module, the control would be great!

If you're looking for help, I could probably either modify the regexp or throw a couple 'or's in there

Forgot to mention, AWESOME module!

@gauravpathak
Copy link

This would be a great addition. Also, in the current package the ifconfig.up command throws error if netmask and broadcast address is kept empty.
There is no any option to run just ifconfg eth0 up or ifconfig wlan0 up.
@bakerface It would be great if you can add this feature or ask anyone who is interested to work on this feature.

@nathanbussey
Copy link

nathanbussey commented May 16, 2019

This is an issue for me as well. Going to try and follow @dkran 's info so I can get the ip addresses. But if there are better regex expressions I should be using, then that would be great too.

super easy to edit the source and change the matches.

@terrytech
Copy link

This would be a great addition. Also, in the current package the ifconfig.up command throws error if netmask and broadcast address is kept empty.
There is no any option to run just ifconfg eth0 up or ifconfig wlan0 up.
@bakerface It would be great if you can add this feature or ask anyone who is interested to work on this feature.

I know this is an old thread, but i just created #56 which allows for a simple ifconfig wlan0 up etc.

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

5 participants