Jump to content
totti93

[Cheat] JocCruce.Ro

Recommended Posts

Posted

Python


#!/usr/bin/python
# joccruce.ro Cheat
# by totti93

import dpkt, pcap
from Tkinter import *
from http_parser.pyparser import HttpParser

# Cu cartile pe fata
def show_cards(cards, p_num):
root = Tk()
root.geometry("900x600+100+100")
b = [None, None, None, None, None, None, None, None, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None]
cd_img = [None, None, None, None, None, None, None, None, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None]
r = 0
j = 0
for i in range(0, len(cards)):
cd_img[i] = PhotoImage(file="i/" + cards[i] + ".gif").subsample(3, 3)
b[i] = Button(image=cd_img[i])
b[i].pack()
b[i].place(x = 1 + r * 70, y = 1 + j * 160)
r += 1
if (i + 1) % (len(cards) / p_num) == 0:
j = j + 1
r = 0
root.mainloop()

# Main
def main():
pc = pcap.pcap()
pc.setfilter("src host joccruce.ro")

for ts, pkt in pc:
data = dpkt.ethernet.Ethernet(pkt).data.data.data
p = HttpParser()
recved = len(data)
p.execute(data, recved)
body = p.recv_body()
if body.count("|carti|") > 0:
pos = body.find("|carti|") + 7
cards_s = body[pos: 79 + pos]
cards = cards_s.split(",")
show_cards(cards, int(sys.argv[1]))

######
main()

Scriptul afiseaza cartile din mana tuturor jucatorilor.

Codul este scris la bascalie, deci nu veniti cu idei de optimizare a ei.

Vulnerabilitatea consta in faptul ca serverul trimite cartile amestecate la clienti, iar flash-ul este cel care face treaba mai departe.

Librarii necesare: pypcap, dpkt, http_parser

Credite: totti93

  • Upvote 1
Posted

Scuze de double post.

O greseala, am uitat sa uploadez si folderul "i" in care sunt pozele. Pozele sunt sub forma de: r2, r3, r4, r9, r10, r11 . GIF (unde r = rosu).

Cand voi avea timp voi face un py2exe.

Se foloseste cu:


# python cheat.py <nr_jucatori>

Posted

Cand voi avea timp, voi rescrie programul intr-un limbaj pe care-l il pot compila cum trebuie (De ex. C#), deoarece era scris in graba, executarea sa necesita si argumente: `./cheat.py <nr_jucatori>`.

Posted
Cand voi avea timp, voi rescrie programul intr-un limbaj pe care-l il pot compila cum trebuie (De ex. C#), deoarece era scris in graba, executarea sa necesita si argumente: `./cheat.py <nr_jucatori>`.

Eu zic ca ai facut deja destul, cine e interesat ia din el ce e bun si si-l scrie exact cum ai spus si tu. Nu trebuie mura in gura .

Toti bolovanii ca cel de mai sus aud de RST si fac cont sa descarce "programe de spart parole" dar nu au habar nici sa-si scrie in run shutdown....

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...