Use Psexec to get Connected USB Device names - batch-file

I'm wondering if it's possible to use Psexec to return a list of connected USB Devices on remote windows 8 computers. Ideal output would be something like this:
USB1: Keyboard
USB2: Barcode Scanner
Obviously the device name would be displayed instead of 'keyboard' ect, is there an easy way to do this? I'm working within a secure environment with hundreds of remote machines, so unable to install any new Microsoft Tools such as Devcon myself.
Any suggestions would be appreciated.

Related

Use ssh to access couchdb on remote server from mobile device

I have an instance of couchdb running on my local port 5984.
My ultimate goal is to run couchdb on a server within a closed network, and be able to send requests to this server from mobile devices within the network.
This post seems to provide a solution, provided I can open a terminal and make an ssh tunnel:
ssh -f -L localhost:15984:127.0.0.1:5984 user#remote_host -N
But I obviously won't be able to access the command line on mobile devices to make the tunnel. How does one go about accessing applications from mobile devices within closed networks? (I can't just deploy it to some web server as I don't have access to the internet)
You CAN run command line on Android, for example with this terminal emulator you can copy a statically linked ssh binary to /data/data/jackpal.androidterm/app_HOME then cd $HOME and ./ssh to execute it
and there are graphical ssh clients, some of which might have the functionality
also termux should have an ssh client available, you probably need to "apt install ssh" when in the app to get it.
You can create a SSH tunnel if the client supports port forwarding. Those I know are :
The paid version of JuiceSSH : Setting up a New Port Forward Profile
Connectbot : Long press in the hosts list and choose "Edit port forwards". The parameters are straightforwardly adapted from the -L option.
You can write a client via sudo apt-cache search libssh; it supports tunneling AKA forwarding.
#include <libssh/libssh.h>
http://api.libssh.org/master/libssh_tutor_forwarding.html

Raspberry pi 3 Bluetooth

My Raspberry Pi 3 can connect briefly to my Android mobile, but once I accept the connection on the Raspberry Pi, I get this error:
GDBus.Error:org.bluez.Error.Failed: No such file or directory. Try to connect manually.
Please help me on this.
You can fix that from Bluetooth control. Type $bluetoothctl as root then you will end up with Bluetooth shall. There you should type "power on" command. After that you can use "scan on" command to check connection.
to continue from Dinusha's answer, after you scan and find your device's ID (you should also be able to see it's name in parentheses) you'll need to pair with the device by doing
pair <device ID>
then connect with the device by doing
connect <device ID>
You'll be able to see status of the connection
There are cases where I use a separate bluetooth dongle for connections I don't want dropped
Raspbian Jessie has some issues as far as I know with the Bluetooth module. I'd recommend using bullseye or buster. Also, there are a couple issues regarding the newest kernel. Run the following command to see if your phone which you are willing to connect is listed:
sudo bluetoothctl devices
If your mobile device is still listed here and not paired on the mobile side, there is your problem. Remove the device using the following command in RPI:
sudo bluetoothctl remove <mac-adress-of-device>

USB turned RAW when making a bootable USB drive failed and now cannot be formatted

I was making a bootable usb drive(8GB) for Win7 using the tool on the microsoft site but the process failed. When i tried to run the process again the windows tool told me that the usb is used by another program and cannot be used. I tried diskpart => clean on the USB but it failed with a write-protected drive error but when I used the diskpart command to check the USB's attributes it was NOT write protected. Under Computer Management => Storage the drive appears to be healthy because it says no problems (primary partition). When I try to format through Computer Management => Storage it fails and tells me the formatting was unsuccessful.I tried many other tools but I can't get the drive working. I don't care about the data on the USB i just want it working again so I can reinstall windows.
Thanks
You just messed up with your USB drive while making it bootable, you can try EASEUS Partition Master for formating your USB drive. This is really nice tool to make your USB alive back. The second thing is in order to make your USB drive bootable you can make use of Y.U.M.I tool to make your USB drive bootable, without formating it.
Also if you are familiar with Linux (Ubuntu) you can try this command to format it:
sudo mkfs.vfat /dev/sdc
Here /dev/sdc is your USB device detected by Linux it could be /dev/sdb , in order to make sure you can try it with this command:
sudo fdisk -l
This will list you all the devices connected to Linux machine.

How to connect between Simulated Vehicle and Companion Computers at the same time?

I was wondering if it was possible to connect to a virtual drone and physical drone at the same time, UDP and USB. This is to test ground station like functionality to be able to control multiple drones. I only have 1 physical and want to test between both.
Or to at least prove my suspicion that
api = local_connect() # Get an APIConnection
all_vehicle = api.get_vehicles()
Does in fact give me all possible connected vehicles.
And just play with it from there.
Edit:
What my process was is looking at MAVProxy and read up on it. I can connect to a physical drone Iris+ and a virtual copter by following
this.
I run the instance with this command
sim_vehicle.sh -v ArduCopter -L PLACE --map --console --out :14550
It works well and I can connect to it using MavProxy via the following command
start up
mavproxy.py --master=127.0.0.1:14550
Now I can connect to the physical as well with
mavproxy.py --master=/dev/USB0
When I try to use with both
mavproxy.py --master=127.0.0.1:14550 --master=/dev/USB0
It doesn't work and I don't even know if it would work to begin with I was just trying.
All in all what i am trying to do is being able to connect to 2 drones and be able to control them with 1 ground control station.
API: to connect to multiple vehicles

Communicating to USB Device

I bought a usb otoscope from the internet and I want to create an application that uses it. When I plug it into the computer, it reads the device as a USB Camera, and I can use the very barebones software supplied to communicate with it. I'm very new to the idea of communicating with usb all together. I've tried to look at some sites like this: http://www.jespersaur.com/drupal/book/export/html/21, that tell me how to reverse engineer a device. I don't know if I'm going down the right path with this...
I've downloaded USB Snoopy and I can't seem to get it to sniff the packets correctly. I also have Crunchbang linux installed on a different computer but I don't know how to sniff it on that either (especially because the drivers are native to windows). All I want is some sort of API/Interfacing functions for me to call and use. How do I go about doing such a thing? I'm able to locate the device on the device manager in windows, and it tells me hardware ID's and such. I can supply any information if necessary. Thank you.
EDIT - Small description I found of the otoscope: http://microscopesimgv.blogspot.com/2012/08/oasis-ehev2-usbplus-20mp-handheld-usb.html
would this tool help you any?libusbx is a cross-platform user mode library that provides generic access to USB devices
CHEERS!

Resources