Giter Club home page Giter Club logo

Comments (11)

BenjaminHae avatar BenjaminHae commented on July 24, 2024

Same here.
I figure it's about the line ls /sys/class/udc > UDC. Before running the script the file /sys/kernel/config/usb_gadget/poisontap/UDC doesn't exist. Afterwards it does. I don't have a clue why the script can create it, but can't write to it.

from poisontap.

samyk avatar samyk commented on July 24, 2024

Did you follow the installation instructions in README.md?

from poisontap.

JetseVerschuren avatar JetseVerschuren commented on July 24, 2024

Yes i followed the installation instructions at the bottom of readme.md

from poisontap.

samyk avatar samyk commented on July 24, 2024

So you're saying pi_startup.sh is already in /etc/rc.local per the instructions, but you're running it a second time as demonstrated in your screenshot? You should only run it once.

from poisontap.

BenjaminHae avatar BenjaminHae commented on July 24, 2024

I followed everything but the addition to rc.local so I could see possible errors when running it manually - as it doesn't work.

It seems to be the same error when the script is executed in rc.local because after booting/sys/kernel/config/usb_gadget/poisontap/UDC exists but is empty.

from poisontap.

samyk avatar samyk commented on July 24, 2024

May want to try following https://gist.github.com/jgamblin/459d7db3b4e8441cc210b35abb5d7181 or https://gist.github.com/gbaman/50b6cca61dd1c3f88f41 in case there is something I missed in the installation

from poisontap.

JetseVerschuren avatar JetseVerschuren commented on July 24, 2024

It partially works on my ubuntu computer, it only runs when i type 1.0.0.1 in the browser and not all requests are made to the pi zero.
Also windows doesn't recognize the pi as a network adapter.

from poisontap.

JetseVerschuren avatar JetseVerschuren commented on July 24, 2024

Why did you use a 128.0.0.0 subnet and not a 0.0.0.0 subnet?

from poisontap.

samyk avatar samyk commented on July 24, 2024

What version of Windows?

128.0.0.0 works on every OS I tested where 0.0.0.0 doesn't. I do want to update dhcpd.conf to use a short lease time, and have the subnet dynamically switch between the lower half and upper half of the IPv4 space but haven't had a chance to, where the usb0 interface will hold an IP in both halves.

from poisontap.

JetseVerschuren avatar JetseVerschuren commented on July 24, 2024

I am using windows 10.
And is it possible to emulate multiple lan adapters?

from poisontap.

combatopera avatar combatopera commented on July 24, 2024

the problem seems to be the one-liner, splitting it worked for me:

name="$(ls /sys/class/udc)"
echo "$name" >UDC

from poisontap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.