Ubuntu :: Parse Mac Address From Arp -a
Jan 24, 2011
I'm using arp -a to get the mac address of the router I am connected to. This is the first line of the output:
Code:
? (153.106.80.1) at 0:50:3e:97:dc:a on en1 ifscope [ethernet]
I want to grab the mac address from this. I know that I probably need to use sed with a regular expression like [0-9A-F]+: but I am not sure how to do this.
View 1 Replies
ADVERTISEMENT
Sep 14, 2009
Im an academic (university networks and security lecturer) studying/teaching network and operating system security, and inspired by the work of Hovav Shacham set about testing ASLR on linux. Principley I did this by performing a brute force buffer overflow attack on Fedora 10 and Ubuntu 9. I did this by writting a little concurrent server daemon which accidently on purpose didnt do bounds checking.
I then wrote a client to send it a malicious string brute forcing guessed addresses which caused a return-to-libc to the function usleep with a parameter of 16m causing a delay of 16 seconds as laid out in [URL] Once I hit the delay I new I had found the function and could calculate delta_mmap allowing me to create a standard chained ret-to-libc attack. All of that works fine. However .... To complete my understanding I am trying establish where I can find the standard base address for ubuntu 9 (and other distros) for the following, taken from Shacham:-
Quote:
[code]....
/proc/uid/maps gives me some information but not the base address ldd also gives me the randomised starting address for sections in the user address space but neither gives me the base address. Intrestingly ... when a run ldd with aslr on for over (about) 100 times and checked the start point of libc I determined that the last 3 (least significant) hex digits were always 0's and the fist 4 (most significant) where between 0xB7D7 and 0xB7F9. To me this indicated that bits 22-31 were fixed and bits 12-21 were randomized with bits 11-0 fixed. Although even that doesnt define the boundaries observed correctly.
Note: I am replicating the attack to provide signatures to detect it using IDS, and for teaching purposes. I am NOT a hacker and if needed to could reply from my .ac.uk email address as verification.
View 1 Replies
View Related
Feb 24, 2010
Currently my OS is Ubuntu 9.04 Jaunty Jackalope Desktop OS and my web server is Apache2. I have a public address 60.x.y.z and my pc local address is 10.x.y.z. I have a web app in my Apache2 which currently run in localhost(10.x.y.z).
I would like to enable the web app so that it could be browse from outside. I know there maybe some port forwarding process and some commands involved in order to do that. But I have no idea on the steps to do that.
View 5 Replies
View Related
Dec 16, 2010
Version 10.04 LTS. Installed desktop version and network worked but I needed a static IP address and the install configures for a DHCP configured address. I tried changing to static address using the System->Preferences->Network Connections application but was unable to get the system to come up with the network up.
So I manually modified the /etc/network/interfaces and the /etc/resolv.conf files. I restart the system but when I do an ifconfig, I don't see a configured IP address on eth0 (only the loopback address). If I run /sbin/ifup eth0 everything then works fine and ifconfig shows the correct address bound to eth0.
My files are as follows:
View 2 Replies
View Related
Jan 16, 2011
When I try to search for something in the main address bar It always adds the following with my input at the end
View 1 Replies
View Related
Mar 12, 2011
I'm running Ubuntu 10.10 and I'm having problems trying to assign it a static IP address. No matter what I put in the Preferences->Networking area (identifying the interface as Manual)... it still will query DHCP for an address if I run the dhclient command. I'm using to using ubuntu server where I just set the IP in the interfaces config file.
View 1 Replies
View Related
Aug 4, 2011
If I give "ifconfig" in my laptop I get eth0,lo,wlan0.In that where do I find my Ip address in Ubuntu in 10.04. In eth0 I dont find inet address.Where can I find it?
View 2 Replies
View Related
May 5, 2010
I have apache2 installed along with php5 and mysql5.0. I have installed them by themselves along with just installing the full LAMP install through terminal. My problem is that I cannot parse php files, it will just download them instead. I did change my apache server to nick/projects (nick is my username). If I navigate to localhost/index.html it works fine but will not parse the php files I have put there. I also have rails working fine in that folder too using apache2.
View 7 Replies
View Related
Feb 17, 2011
In firefox you can type ubuntuforums and it will bring you here via a google query.Mines stopped working the address bar goes to http://ubuntuforums/ and I get a forbidden page.I've check about : config and all is set fine
Code:
Keyword.enable = true
Keyword.URL = http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
[code]....
View 5 Replies
View Related
Mar 15, 2011
i am pretty much brand new to ubuntu i have messed around with it a little and have gotten my apache2 server up and running what i have some questions on is
1. How can i give my server a actual address and not my ip address?
2. Is there any way i can put like forum software on part of it? if so how?
3. What is the best way to write web pages i know some html so thats how i was able to write what i have now just wondering what best way is
View 1 Replies
View Related
Mar 2, 2010
When trying to access my HTC Vogue via bluetooth, I can view all my files EXCEPT the music directory I made on my sd card (which is actually the one i wanted...). When trying to view it, nautilus gives the following error:
Code:
The folder contents could not be displayed. Couldn't parse the incoming data. A quick google revealed [URL]../+s...ez/+bug/310231 however I'm fairly noobish when it comes to compiling so could someone perhaps direct me with the commands? Edit: Sorry forgot to mention its the second post on that website.
View 1 Replies
View Related
Apr 5, 2010
When I try to save my X configuration file.. it says "Failed to parse existing X config file '/etc/X11/xorg.conf'!"
I've already deleted my current xorg.conf and created a new one using sudo nvidia-xconfig and run NVIDIA X server settings using gksudo nvidia-settings but still can't save..I am using 32-bit Ubuntu 9.10 and my video card is NVIDIA FX 5500..
View 9 Replies
View Related
May 22, 2010
I successfully installed ubuntu but I cant install its updates, heres the prob:
dpkg: parse error, in file '/var/lib/dpkg/available' near line 19410 package 'initscripts': missing version
View 2 Replies
View Related
Sep 3, 2010
I killed a stalled apt-get safe-upgrade, which left lock-files on my system. I followed this guide to clean it up:
http://ubuntuforums.org/showthread.p...highlight=lock
and have done the following:
sudo rm /var/lib/dpkg/lock
sudo rm -r /tmp/*
now, when I try:
sudo dpkg --configure -a
i get: dpkg: parse error, in file '/var/lib/dpkg/updates/0006' near line 0: newline in field name `#padding'
the file var/lib/dpkg/updates/0006 contains nothing but lines of '#padding'
System: Freshly installed 10.04 64bit, 2.6.32-21-generic
View 2 Replies
View Related
Jan 16, 2011
Source:
Code:
JAMES ::: AAAA ::: 1111
JANET ::: BBBB ::: 2222
LAURA ::: CCCC ::: 3333
[Code].....
Is there a way to do this from command line?
View 7 Replies
View Related
Mar 24, 2011
This is a clean OpenSUSE 11.4 installation (the installation went flawless) I got the error while adding an https repo from the build service (though I *think* I mistyped the URL - plus the build service URL should be http) After restarting yast, everything went fine
I bet there's a segfault happening when trying to parse a broken repo (ie: broken download or even just a 404).
Code:
YaST got signal 11 at YCP file packager/repositories_include.ycp:188
/sbin/yast2: line 423: 2780 Segmentation fault $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS
View 5 Replies
View Related
Mar 24, 2010
what is the best command to use to parse strings?I have a variable $str and need to parse this string.Can you provide an example of the command used to get a substring of $str based on the index values of start and end
View 3 Replies
View Related
Jan 20, 2011
I'm trying to simply pull a line (semi-static entry) from an xml file online with a shell script, or perl script. Basically, I've got a URL that loads an XML file. From this file I want to pull a text entry:
<blah xml code blah 'http://static.address.com/static_directory/dynamic_filename.123' blah xml code blah>
I would like to do this from a shell or perl script. I would like to parse the xml file so that it just pulls the http - .123 information and ends there, that's the only information I need. it will then run a local command on this file.
View 1 Replies
View Related
Feb 4, 2010
How to let awk consider a string by double quota as one field? for example:
echo "first "second is a string"" | awk '{ print $2 }'
I want to print out "second is a string".
View 8 Replies
View Related
Jan 20, 2011
I am novice. I am trying to create one email form. But i am getting "Parse error: parse error in F:estwampwwwsendmail.php on line 43"
Code:
<?php
if(isset($_POST['email'])) {
[code]....
View 3 Replies
View Related
Jul 28, 2010
I got this xml
...
<other stuff="etc">...</other>
<cluster id="1">
<host ipaddress="192.168.50.1" name="server1">
<host ipaddress="192.168.50.2" name="server2">
<host ipaddress="192.168.50.3" name="server3">
</cluster>
...
how would i get the ip addresses only using bash.
View 4 Replies
View Related
Apr 17, 2011
My php knowledge is very poor (only worked with strings so far), and I am faced which a task that is a real challenge for me: I have a variable, that contains data of different type, in this order: byte, byte, string, string, string, string, short, byte, byte, byte, byte, byte, byte, byte, string.
Strings are of variable length. How could this data be parsed into variables of the right type, and then all converted to strings? What are the functions to use? Strings are unicode ones, and they are delimited by "
View 4 Replies
View Related
Feb 5, 2010
since i reformatted my new hard drive i have been having issues saving my config file when i tried to save to x configuration file it says: Failed to parse existing X config file '/etc/X11/xorg.conf'.i used to be able to open the file as root and copy over the old x config with the new one but it wont let me even preview the changes until i click save to x configuration file. anyone know how i can fix this error? i tried uninstalling and that didn't help.
View 2 Replies
View Related
May 12, 2011
I am working on implementing a protocol on NS2.34 .I really need help to solve this problem . Actually , I don't now whether the problem is generated by the tcl code or the c++ code when I run the simulation, I get this result :
Code:
num_nodes is set 64
INITIALIZE THE LIST xListHead
34
45
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
code....
View 1 Replies
View Related
Apr 1, 2011
I want to pass ip address,port address and some parameters from command line using python script.The ip address and port address for establishing socket connection and remaining parameters to execute different connection.
View 1 Replies
View Related
Feb 21, 2011
if i attach a shared memory to my process whch part of the address space it will add(like stack, heap, data, code...).
View 3 Replies
View Related
Apr 24, 2010
Consider the following program:
Code:
#include <stdio.h>
#include <stdint.h>
[code]...
View 2 Replies
View Related
Apr 6, 2011
I need a small shell based program that prints the mac address of physical ethernet adapter from it's firmware. I need this utility for license generation and appliance activation. I have tried several example but none of them is flawless, The easiest method I have found is to parse the output of "ifconfig" command but it has also some drawbacks.
1. Firstly program should differentiate between physical and virtual adapters. Physical means installed on board(wired or wireless) or installed additionally. Virtual adapters are those created by VPN or created by virtualization apps such as VirtualBox/VMWare etc. I am not interested in virtual ones.
2. In case of more them one physical adapters(wired and wireless), it should print the mac address and description(name & vendor) of both/all adapters.
3. If media is disconnected then also it should be able to read the mac address and description(name, vendor) of card.
4. This one is bit complex. I know that 'ethtool' can show you the universal mac address but it's limited to use only 2 types of drivers and won't work in all cases.
View 2 Replies
View Related
May 7, 2010
I am running my own Postfix mail server. Some time ago I noticed that most email was rejected because of the server's dynamic IP address. So I got a fixed IP address. However then I noticed that some mails got rejected due to failing the reverse DNS check. So my ISP told me to get a range of IP addresses and they could then create a PTR record for one of those addresses. That is now running but it turns out that the IP address used for the PTR record is a ... dynamic IP address. So Spamhaus PBL rejects my emails again.
View 1 Replies
View Related
Sep 4, 2009
I hv Cent OS 5.3 installed as server. I hv a network of approx 100 desktops and laptops. For a security purpose i want to block certain laptops from gaining a the network access using dhcp. Can we block the ip address leasing if a specific MAC address request for a ip lease?
View 7 Replies
View Related