aircampro

socket client juliet

Jan 4th, 2026
100
0
Never
9
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 1.45 KB | Source Code | 0 0
  1. # example using sockets library in juliet
  2. #
  3. using Sockets
  4.  
  5. function tcp_client(prt::UInt16)::Int16
  6.     try
  7.         #var port::UInt16 = 4442
  8.         var port::UInt16 = prt
  9.         var sock = connect(port)
  10.         var result = read(sock, String)
  11.         println("read $result ")
  12.         close(sock)
  13.         return 0
  14.     catch e
  15.         if e isa SystemError
  16.             local e = e::SystemError
  17.             println(e.message)
  18.         end
  19.         return 1
  20.     end
  21. end
  22.  
  23. function udp_rcv(ip::String, prt::UInt16)::Int16
  24.     try
  25.         var recvi = UDPSocket()
  26.         #bind(rcvi, "127.0.0.1", IInt16(4999))
  27.         bind(rcvi, ip, IInt16(prt))
  28.         var ret = recv(recvi)
  29.         # print first char
  30.         println(ret[1])
  31.         var z::Int64 = len(ret)
  32.         # print backwards what was received
  33.         while z > 0
  34.             println(ret[z])
  35.             z -= 1
  36.         end
  37.         close(recvi)
  38.         return 0
  39.     catch e
  40.         if e isa SystemError
  41.             local e = e::SystemError
  42.             println(e.message)
  43.         end
  44.         return 1
  45.     end
  46. end
  47.  
  48. function sockpair_stream()
  49.     var socks = socketpair(UnixStreamSocket)
  50.     write(socks[1], "test data")
  51.     # read from other end
  52.     println(read(socks[2], String))
  53. end
  54.  
  55. function sockpair_dgram()
  56.     var socks = socketpair(UnixDgramSocket)
  57.     write(socks[1], "test data")
  58.     # read from other end
  59.     println(read(socks[2], String))
  60. end
  61.  
  62. function sockpair_seqpack()
  63.     var socks = socketpair(UnixSeqpacketSocket)
  64.     write(socks[1], "test data")
  65.     # read from other end
  66.     println(read(socks[2], String))
  67. end
Tags: #juliet
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Borrikic
    18 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Orykegor
    3 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=rlwfrxorrv
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment