How Change Mac on VxWorks ?

1,403 views
Skip to first unread message

Mehran

unread,
Jun 10, 2011, 11:12:37 AM6/10/11
to wimax hacking
any one know how can i change Mac for This Device ?!


This is result after i Telnet

VxWorks login: admin
Password:


-> help

help Print this list
dbgHelp Print debugger help info
edrHelp Print ED&R help info
ioHelp Print I/O utilities help info
nfsHelp Print nfs help info
netHelp Print network help info
rtpHelp Print process help info
spyHelp Print task histogrammer help info
timexHelp Print execution timer help info
h [n] Print (or set) shell history
i [task] Summary of tasks' TCBs
ti task Complete info on TCB for task
sp adr,args... Spawn a task, pri=100, opt=0x19,
stk=20000
taskSpawn name,pri,opt,stk,adr,args... Spawn a task
td task Delete a task
ts task Suspend a task
tr task Resume a task
tw task Print pending task detailed info
w [task] Print pending task info

Type <CR> to continue, Q<CR> to stop:

d [adr[,nunits[,width]]] Display memory
m adr[,width] Modify memory
mRegs [reg[,task]] Modify a task's registers interactively
pc [task] Return task's program counter
iam "user"[,"passwd"] Set user name and passwd
whoami Print user name
devs List devices
ld [syms[,noAbort][,"name"]] Load stdin, or file, into memory
(syms = add symbols to table:
-1 = none, 0 = globals, 1 = all)
lkup ["substr"] List symbols in system symbol table
lkAddr address List symbol table entries near address
checkStack [task] List task stack sizes and usage
printErrno value Print the name of a status value
period secs,adr,args... Spawn task to call function
periodically
repeat n,adr,args... Spawn task to call function n times
(0=forever)
version Print VxWorks version info, and boot
line
shConfig ["config"] Display or set shell configuration
variables
strFree [address] Free strings allocated within the shell
(-1=all)


Type <CR> to continue, Q<CR> to stop:

NOTE: Arguments specifying 'task' can be either task ID or name.

value = 1 = 0x1
->


Regards ....

Behrooz Shie

unread,
Mar 25, 2013, 8:24:34 PM3/25/13
to wimax-...@googlegroups.com
I have the same problem.
Do you have information?

Behrooz Shie

unread,
Mar 28, 2013, 6:17:26 PM3/28/13
to wimax-...@googlegroups.com
How to use this script?
I copied the script in terminal but I do not


#cmd "startss"

Done executing startup script /tffs/ss1130_10M_usb.sh
-> int mac_changer(void) {
tsyntax errorr
-> uct ifreq ifr;
nt s;

s = socket(AF_INET, SOCK_DGRAM, 0);
assert(s != -1);

strcpy(ifr.ifr_name, "InterfaceX");
ifr.ifr_hwaddr.sa_data[0] = 0x02;
ifr.ifr_hwaddr.sa_data[1] = 0x00;
ifr.ifr_hwaddr.sa_data[2] = 0x5E;
ifr.ifr_hwaddr.sa_data[3] = 0xAE;
ifr.ifr_hwaddr.sa_data[4] = 0x01;
ifr.ifr_hwaddr.sa_data[5] = 0x09;
ifr.ifr_hwaddr.sa_family = ARPHRD_ETHER;
assert(ioctl(s, SIOCSIFHWADDR, &ifr) != -1);

return EXIT_SUCCESS;
} /* En d mac_changer */und efined symbol: ifreq
->

Behrooz Shie

unread,
Apr 3, 2013, 2:56:58 PM4/3/13
to wimax-...@googlegroups.com
tanks
how to use C code for device ?
im only shell console


On Friday, 29 March 2013 20:19:59 UTC+4:30, ABA wrote:
Hi,

This is not a script code. it is C code.

best regards  

Nima Alizadeh

unread,
Apr 3, 2013, 7:57:25 PM4/3/13
to wimax-...@googlegroups.com, behro...@gmail.com

Dear Behrooz
If you want to change mac address of huawei or any other kind of device, there is a better way of command line, first go to web and save the config file, open it with notepad ++ ( I open it with vim in linux) and search for clone you will find the enable/disable of mac address cloning with 0/1 and change the mac address you want to clone. if you can not find it send me the config file and I will  give you the line number to change.
--
You received this message because you are subscribed to the Google Groups "wimax hacking" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wimax-hackin...@googlegroups.com.
To post to this group, send email to wimax-...@googlegroups.com.
Visit this group at http://groups.google.com/group/wimax-hacking?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Behrooz Shie

unread,
Apr 12, 2013, 6:13:01 PM4/12/13
to wimax-...@googlegroups.com, behro...@gmail.com
VxWork not any web base !

Anil Kumar

unread,
Nov 7, 2019, 5:28:46 AM11/7/19
to wimax hacking

Juse use below function or command

ifconfig ("qfec0 lladdr 00:11:22:33:44:55")

ifconfig qfec0 lladdr 00:11:22:33:44:55

Reply all
Reply to author
Forward
0 new messages