Skip to main content

Search

Items tagged with: syscall


 

Article: Network Redirections in Bash.


by Anmol Sarma - software developer from Bengaluru ( #India ).

Preview/extract:

[...] it sends a UDP datagram containing a random number to port 1234 every 250 ms.

while true; do echo $RANDOM > /dev/udp/127.0.0.1/1234; sleep 0.25; done

I didn’t recall ever seeing a /dev/udp and so was a bit surprised that it worked.
Seemingly, a normal UDP socket was being created and written to using the regular sycall interface. That refuted my initial suspicion that some kind of a special file backed by the kernel was involved.
But who was actually creating the socket?
A peek at Bash’s code answered that question [...]

Tags: #linux #bash #ksh #scripting #script #networking #hacking #coding #code #codeanalyse #development #syscall #udp #tcp.


 

Linux apps running on iOS via userspace x86 emulation and syscall translation


iSH is a project to get a Linux shell environment running locally on your iOS device, using a usermode x86 emulator.
Article word count: 45

HN Discussion: https://news.ycombinator.com/item?id=18430031
Posted by United857 (karma: 2048)
Post stats: Points: 103 - Comments: 44 - 2018-11-12T01:54:16Z

\#HackerNews #and #apps #emulation #ios #linux #running #syscall #translation #userspace #via #x86
Article content:

Join our [1]Discord server if you have any questions or concerns, or you just want to chat!

You can also become a [2]patron if you would like support iSH.
Donations are very much appreciated, but will never be required; the app will always be completely free.

References

Visible links
1. https://discord.gg/SndDh5y
2. https://patreon.com/tbodt

HackerNewsBot debug: Calculated post rank: 83 - Loop: 75 - Rank min: 80 - Author rank: 58