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

Error "No such file or directory" #29

Closed
InfoLibre opened this issue Feb 19, 2020 · 13 comments
Closed

Error "No such file or directory" #29

InfoLibre opened this issue Feb 19, 2020 · 13 comments
Labels

Comments

@InfoLibre
Copy link
Contributor

InfoLibre commented Feb 19, 2020

$ sudo -H /usr/local/bin/pombo.py
Retrieving IP address from infolib.re
Checking status on infolib.re
<<!>> Stolen computer <<!>>
* Attempt 1/3 *
Filename: Ordinateur-David_20200219_145641
Collecting system info
STDERR: b"docker0   Interface doesn't support scanning.\n\neno1      Interface doesn't support scanning.\n\nlo        Interface doesn't support scanning.\n\n"
Taking screenshot
Taking webcamshot
STDERR: b'/bin/sh: 1: no: not found\n'
Zipping files
Skipping encryption (bad, Bad, BAD ...)
[Errno 2] No such file or directory: '/tmp/Ordinateur-David_20200219_145641.zip'
Traceback (most recent call last):
  File "/usr/local/bin/pombo.py", line 997, in <module>
    sys.exit(main(sys.argv))
  File "/usr/local/bin/pombo.py", line 986, in main
    pombo.work()
  File "/usr/local/bin/pombo.py", line 861, in work
    self.snapshot(current_ip)
  File "/usr/local/bin/pombo.py", line 670, in snapshot
    self.snapshot_sendto_server(os.path.basename(gpgfilepath), gpgfilepath, data)
  File "/usr/local/bin/pombo.py", line 585, in snapshot_sendto_server
    self.log.info(txt, sizeof_fmt(filepath), urlsplit(distant).netloc)
  File "/usr/local/bin/pombo.py", line 101, in sizeof_fmt
    val = float(os.path.getsize(filename))
  File "/usr/lib/python3.6/genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/Ordinateur-David_20200219_145641.zip'
Session terminated.

Is it because I do not put i_dont_wanna_use_encryption_and_i_assume between "" in pombo.conf ?

If I put it between "", I've got this error :

Zipping files
Encrypting zip with GnuPG
STDERR: b'gpg: "i_dont_wanna_use_encryption_and_i_assume"\xc2\xa0: ignor\xc3\xa9\xc2\xa0: Pas de clef publique\ngpg: /tmp/Ordinateur-David_20200219_152155.zip: encryption failed: Pas de clef publique\n'
GPG encryption failed. Aborting.
Session terminated.
@InfoLibre
Copy link
Contributor Author

InfoLibre commented Feb 21, 2020

I join here all my files if you want to reproduce this error. I'm using Linux Mint MATE 19.3.
pombo.zip

@BoboTiG BoboTiG added the bug label Feb 23, 2020
@BoboTiG
Copy link
Owner

BoboTiG commented Feb 23, 2020

I will have a look in the coming days (quickly), sorry for the delay :)

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 24, 2020

Could you retry again with the version from the master branch please?

@InfoLibre
Copy link
Contributor Author

InfoLibre commented Feb 24, 2020

Now it works, thank you very much.
There's only an error message (STDERR: /bin/sh: 1: no: not found), but I suppose it is beca&use of Docker :

$ sudo -H /usr/local/bin/pombo.py
[sudo] Mot de passe de david :
Retrieving IP address from infolib.re
Checking status on infolib.re
Computer does not appear to be stolen.
IP has changed.

  • Attempt 1/3 *
    Filename: Ordinateur-David_20200224_191258
    Collecting system info
    STDERR: docker0 Interface doesn't support scanning.
    eno1 Interface doesn't support scanning.
    lo Interface doesn't support scanning.
    Taking screenshot
    Taking webcamshot
    STDERR: /bin/sh: 1: no: not found
    Zipping files

I tried without a .stolen file. Something is strange. Sometimes, 3 zip files are sent to server, sometimes only 2. Is it normal ? Is it because I execute the command twice in less than 15 minutes ?

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 24, 2020

I think the webcam command is not working either. You should set it to blank:

camshot=

About the network interface error, in the console of the same docker container, what is the out of:

/sbin/ip a

?

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 24, 2020

Could you check the report.txt file? Too see if everything works fine.

@InfoLibre
Copy link
Contributor Author

InfoLibre commented Feb 24, 2020

$ /sbin/ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 74:46:a0:92:69:44 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.3/24 brd 192.168.1.255 scope global dynamic noprefixroute eno1
       valid_lft 69775sec preferred_lft 69775sec
    inet6 2a01:cb11:1cd:f500:5a3a:d059:82a2:82b5/64 scope global dynamic noprefixroute 
       valid_lft 1756sec preferred_lft 556sec
    inet6 fe80::c48d:f8af:6579:8b75/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:64:e2:98:97 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 24, 2020

Maybe is it the Wi-Fi scanning that pops up errors. It may be understandable. Try blanking the wifi command to get ride of the errors.

@InfoLibre
Copy link
Contributor Author

Yes, the error was because of camshot=no. I set it to camshot= and it's OK. I did not well understood the comment in the .conf file : To disable a command, blank it. I thought I had to delete all the line.

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 24, 2020

I will let you close the issue when you think it is OK :)

@InfoLibre
Copy link
Contributor Author

Where can I find the report.txt file ?

@BoboTiG
Copy link
Owner

BoboTiG commented Feb 24, 2020

Inside a report sent to the server (the ZIP file or the GPG file).

@InfoLibre
Copy link
Contributor Author

Ah OK. Now, i've got always 3 reports, it seems to be OK (I don't know why I had only 2 sometimes).

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

No branches or pull requests

2 participants