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

TypeError: ouput() takes at most 12 arguments (13 given) #32

Closed
ajayfuloria opened this issue Sep 24, 2017 · 2 comments
Closed

TypeError: ouput() takes at most 12 arguments (13 given) #32

ajayfuloria opened this issue Sep 24, 2017 · 2 comments

Comments

@ajayfuloria
Copy link

Hi !

I am trying to use simple_IMSI-catcher.py but am facing the following problem. Seems output function is being passed more arguments than defined. But in the code I found output being passed 12 args only.

Pls help. I am using master branch of grgsm using hackrf for receiving.

thanks

merlin@den:~/work/gsm/IMSI-catcher$ sudo python simple_IMSI-catcher.py --sniff
Nb IMSI ; TMSI-1 ; TMSI-2 ; IMSI ; country ; brand ; operator ; MCC ; MNC ; LAC ; CellId
Traceback (most recent call last):
File "simple_IMSI-catcher.py", line 577, in
sniff(iface=options.iface, filter="port {} and not icmp and udp".format(options.port), prn=find_imsi_from_pkg, store=0)
File "/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py", line 620, in sniff
r = prn(p)
File "simple_IMSI-catcher.py", line 539, in find_imsi_from_pkg
find_imsi(udpdata)
File "simple_IMSI-catcher.py", line 470, in find_imsi
t.register_imsi(gsm.arfcn, imsi1, imsi2, tmsi1, tmsi2, p)
File "simple_IMSI-catcher.py", line 278, in register_imsi
self.pfields(str(n), self.str_tmsi(tmsi1), self.str_tmsi(tmsi2), imsi1, str(self.mcc), str(self.mnc), str(self.lac), str(self.cell), p)
File "simple_IMSI-catcher.py", line 214, in pfields
self.ouput_function(cpt, tmsi1, tmsi2, imsi, imsibrand, imsicountry, imsioperator, mcc, mnc, lac, cell, packet)
TypeError: ouput() takes at most 12 arguments (13 given)

@Oros42
Copy link
Owner

Oros42 commented Sep 24, 2017

Mmmh commit 9ff85f9 didn't fix it ? 0_o

@ajayfuloria
Copy link
Author

Thanks,

The issue is fixed in the commit you mentioned.

Thanks

@Oros42 Oros42 closed this as completed Sep 24, 2017
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