• Breaking News

    Tuesday, January 2, 2018

    [Humble Bundle] Python Bundle is now Live learn programming

    [Humble Bundle] Python Bundle is now Live learn programming


    [Humble Bundle] Python Bundle is now Live

    Posted: 01 Jan 2018 11:04 AM PST

    May be an odd question - suggestions for someone who's poor?

    Posted: 01 Jan 2018 09:18 PM PST

    I'm planning to start some CS / code mentoring in my city. While there's plenty of great resources that are free ... my audience may not have access to a computer or consistent wi-fi.

    Any suggestions?

    Some thoughts I had are:

    • local library? (hard to do any type of IT help)
    • suggest getting a very cheap PC laptop?
    • use bootable Ubuntu USBs ... maybe they can plug those in at a library? At least that way, I could control the dev environment.

    Any suggestions would be appreciated.

    Thanks.

    submitted by /u/ThePlum
    [link] [comments]

    What are some good project ideas to learn lower level languages?

    Posted: 01 Jan 2018 06:36 PM PST

    I've done a ton of web development in the past couple of years and I would like to try some new projects and languages. I would like to really learn languages like C, C++, Rust, Go, but I just don't know a fun project to get going with. I hate just reading documentation or tutorials without a project and with web development it has been fairly easy to come up with new ideas for websites. When it comes to these lower level languages I just don't know what to build that would be fun and good practice. Any suggestions are appreciated!

    submitted by /u/lrningcode
    [link] [comments]

    15 year coding gap, looking for advice on where to start with a specific project

    Posted: 01 Jan 2018 08:16 PM PST

    Greetings, I graduated in 2003 with the intent to become a programmer. I had approximately 20+ languages under my belt including C++, C#.NET, Java, JavaScript, HTML, PHP, VB, etc... I also had a strong understanding of SQL and utilization of DBs. Since then I went into IT support work and really let my coding knowledge sit in the closet.

    Due to a series of unfortunate events I am now unemployed and seeking to get back into programming and work on an independent project. At a high level I would like to utilize user created hotspots which can be viewed by other local users of the application. I would like to have this accessible from android / Apple / PC. What I am just seeking is an idea of where to start. Do I make a page site that is accessible from the apps? What language would be ideal for this? What is mainstream for web development these days?

    While I understand my post is a bit vague, I don't want to give away too much as I had two ideas taken from me back in college that actually turned into sizable cash cows. I just appreciate any direction that you can offer at a high level.

    Thanks.

    submitted by /u/Help_Me_123
    [link] [comments]

    What is the best free MOOC you have seen for Data structures and algorithms?

    Posted: 01 Jan 2018 09:37 PM PST

    Could be from YT, coursera, any random site, udacity, whatever... I have Cracking the Coding interview but sometimes I just don't like reading.

    submitted by /u/TheWeebles
    [link] [comments]

    (beginner question) What's the point of these programming exercises? Joining strings, finding prime numbers, lowercasing letters etc.

    Posted: 01 Jan 2018 08:20 PM PST

    I'm doing code academy and it has tons of exercises like this. They are super difficult and I can never seem to get them on my own without using the "get code" button and eventually giving up after banging my head for maybe a couple hours. How should I be thinking to try and solve the problems without giving up and pressing the solution button?

    submitted by /u/rko1985
    [link] [comments]

    [Java]What are some better approaches instead of this switch statement for finding the neighbors of a cell in a grid? (Console Minesweeper)

    Posted: 01 Jan 2018 11:40 PM PST

    public static Cell findCell(int cellIndex, int nthNeighbor) { int row = cellIndex / ROWS; int col = cellIndex % COLS; // each of the 8 surrounding cases for a cell switch(nthNeighbor) { case 0: if(row < 1 || col < 1) return null; return cells[row -1][col - 1]; case 1: if(row < 1) return null; return cells[row -1][col]; case 2: if(row < 1 || col >= COLS - 1) return null; return cells[row -1][col + 1]; case 3: if(col < 1) return null; return cells[row][col -1]; case 4: //skip same cell if(col >= COLS -1) return null; return cells[row][col + 1]; case 5: if(row >= ROWS -1 || col < 1) return null; return cells[row +1][col -1]; case 6: if(row >= ROWS -1) return null; return cells[row +1][col]; case 7: if(row >= ROWS -1 || col >= COLS -1) return null; return cells[row +1][col +1]; default: return null; } } 
    submitted by /u/neddivine
    [link] [comments]

    How To Install Python And Write Your First Program!

    Posted: 01 Jan 2018 11:16 PM PST

    Big O and algorithm analysis

    Posted: 01 Jan 2018 02:58 PM PST

    Hello, I am really struggling understand this topic, I will be taking first data structure course this semester. Do you guys know some amazing resources to learn it? I am also gonna be travelling for 2 days so I really want something to read and this seems like perfect topic.

    submitted by /u/SpaceWarrior7
    [link] [comments]

    C# - Match characters in string, change their color and keep the output even after loop

    Posted: 01 Jan 2018 11:56 AM PST

    I'm trying to make a simple C# console app but my current code doesn't seem to allow me to do what I want. It needs to check if a word contains a character, if it does it needs to make the letter red if it doesn't it needs to remain black. I was able to to do the above with my code but if i have it in a loop (while menu != 0) and the user inserts another letter only the new one appears red while I wanted the new and the previous one but I was unable to implement that.

    The code currently looks like this (mystring and w are user inputted values):

    Char[] array = mystring.ToCharArray();

    char wchar = Convert.ToChar(w);

    foreach (Char c in array)

    {

     if (c == wchar) { Console.ForegroundColor = ConsoleColor.Red; Console.Write(c); Console.ForegroundColor = ConsoleColor.White; } else { Console.ForegroundColor = ConsoleColor.Black; Console.Write(c); Console.ForegroundColor = ConsoleColor.White; } 

    }

    Console.WriteLine();

    submitted by /u/Hydra295
    [link] [comments]

    I need help

    Posted: 01 Jan 2018 07:53 PM PST

    If you were to teach a programmer discipline when it came to programming. for example data management, code alignment, presentation etc

    What programming book, online resource would you suggest them to go through to improve on those areas.

    submitted by /u/drunkenboss
    [link] [comments]

    Non tech person, need simple webpage to display my crypto balance from bittrex and gdax exchange, where do i start?

    Posted: 01 Jan 2018 10:05 PM PST

    I want to be able to have a simple webpage, that shows my current holdings and its value from two different exchanges that support API access to my account information. Please let me know where to start, what do i need. I can learn the essential bits to just make this one web page work, but would appreciate if someone can help with where to start and what i need.

    I have a NAS at home, not sure if I would have to host my own webpage or can use any free one out there.

    Thanks for your time.

    submitted by /u/totemspin
    [link] [comments]

    I wonder if i am making a mistake for choosing to start learning C++ for my goal.

    Posted: 01 Jan 2018 07:40 PM PST

    First of all, yes, i have read the FAQ and it's relevant links, i don't think my question was answered there. It may be and i probably missed it.

    I am a beginner so sorry if i am asking a exhausted question or if i am asking a silly question.


    I am wondering if i am making the correct decision by choosing to start learning C++.

    1. My "end" goal is to make a complex-ish 2D PC game.
    2. I am aware before making my goal game i first need to start making way simpler games.
    3. I am also aware before making simple games i have to learn the programming language and get familiarized with it.
    4. I am aware i won't become an expert programmer overnight, it will take time.
    5. According to the FAQ, my options are: JavaScript, C#, or C++.
    6. I am aware there is no "best" language.
    7. I am aware there are languages that are more fitting than others to fulfill my long-term goal.

     

    But from what i have read on the web and on /r/ProgrammerHumor, C++ is an awfully difficult language to learn that requires an unholy amount of time to -just- grasp.

    I do have time to learn, and am aware that like with anything, mastery requires practice/patience/perseverance, but i keep reading people having bad experiences with C++, getting overwhelmed by it and ultimately frustrated.

    The reason i choose to start learning C++ is because of it's pros such as the amount of libraries (if i want to learn programming to accomplish that complex goal like mine like making a game, i need all the help i can get and a big amount of libraries means a lot of potential help) and support across platforms.

    I found a guide that featured a big rant (well, not only one, many) about C++ being "outdated, hard, dumb, awful choice for a beginner that aims to make games and that it requires x10 times the amount of lines other languages would need to do a simple thing."

    Not only that, but http://www.bestprogramminglanguagefor.me from the FAQ rates C++ with a 2 in beginner friendliness.

    As someone that would be starting basically from zero (studied in the past VERY VERY basic java programming, almost not even worth mention), i REALLY want to be careful and not choose a language that would ultimately overwhelm and frustrate me, but at the same time a powerful language that will allow me to accomplish my goal.

    submitted by /u/UnavailableUsername_
    [link] [comments]

    What are your guys' programming New Years Resolutions? (if any)

    Posted: 01 Jan 2018 07:52 AM PST

    jw what everyone has planned for coding and development in 2018.

    submitted by /u/blackiechan99
    [link] [comments]

    Why is one of these sieves faster than the other

    Posted: 01 Jan 2018 08:50 PM PST

    I am going through Project Euler and for one of the problems I changed the sieve I wrote to find prime numbers so it would give me the number of distinct prime divisors a number has.

    Original:

     def primes(n): sieve = [False, False] + [True]*(n-2) for i in range(2, n): if i*i <= n: for f in range(i*i, n, i): sieve[f] = False #sieve[f] = Boolean for if f is prime return(sieve) 

    New:

    def howManyFactors(n): sieve = [0]*(n) for i in range(2, n): if sieve[i] == 0: for f in range(i, n, i): sieve[f] += 1 #sieve[f] = number of distinct prime factors of f (0 if prime) return(sieve) 

    It will still tell me if a number is prime (it has zero prime divisiors) but also gives me more information. When I ran it I noticed it was a little faster than the original sieve I had written. With smaller numbers it wasn't that much faster but when I got closer to 1010 it was almost twice as fast.

    Can anyone explain to me why that is?

    submitted by /u/kippopotamus
    [link] [comments]

    ELI5 how KNN decision boundary works with many features

    Posted: 01 Jan 2018 08:06 PM PST

    I kind of understand how a simple KNN algorithm works. However, I can't seem to intuitively get how it works with multiple features or how decision boundary might look.

    Here's a very simple example I am working with.

    My training dataset contains information about soccer players: Name, Position, Goals Scored, Assists made (both from 2010 edit I mean from 2010 onwards).

    I want to classify players' positions given the data about goals and assists. This works pretty well tbh and is a fun starter project.

    However, I don't understand how it will work with other features such as Age, or Nationality(for example, south american defenders have more assists than european defenders....also this is a discrete value and i'm not sure how that works in KNN). A forward who started playing in 2015 will obviously have fewer goals, so there would be misclassification. I don't understand how the features are supposed to normalized, and WHY it would work with multiple features.

    submitted by /u/welc0meToTheMachine
    [link] [comments]

    Python Newcomer!

    Posted: 01 Jan 2018 08:00 PM PST

    Hi! I finished the codeacademy course and I want to go to the next level, is there any other free site that I can learn from? It has to be free because I'm from Venezuela and sadly a dollar here worths a lot, like a LOT, so that's it! Thanks!!

    submitted by /u/Azokka
    [link] [comments]

    Is there a discord or IRC that is newbie friendly for asking questions?

    Posted: 01 Jan 2018 05:40 PM PST

    Long story short, personally I learn 1000 times faster when I can actually chat or communicate with someone in real time. With no formal education sometimes it's hard to find the correct verbage/syntax to search google for and when you post on reddit it can take hours or days to find a solution.

    The other day I was stumped and after google returned nothing, I simply asked round on a few discords I frequent. Someone answered me and having someone to bounce questions off of and discuss my project in real time was absolutely amazing.

    Is there any place that would be appropriate for this?

    Much thanks :)

    submitted by /u/Fuegopants
    [link] [comments]

    Hitting walls with The Odin Project

    Posted: 01 Jan 2018 12:02 PM PST

    Hi guys.

    So this might end up being a bit of a self-indulgent moan but here we go...

    I first touched The Odin Projects over two years ago. About a year and a half ago, I was unemployed and heavily into The Odin Project. I was happily spending upwards of 8 hours a day going through the courses, making leaps and bounds of progress and feeling pretty damn proud of myself. I loved working out all the kinks in my code and figuring stuff out. I managed to get very close to the end of the Ruby section.

    Then I hit the Chess project.

    For some reason, perhaps partly because I'd never played chess before, I found this absolutely daunting. I'd managed to create a terminal visual interface for tic-tac-toe, but an entire chess board with chess pieces, AND it had to work?! And I'd never played chess in my life?

    I felt completely overwhelmed.

    (In retrospect, it also didn't help that I wasn't using very good practice in my code, which was potentially causing a lot of debugging time. I've since read 'Practical OOD Design in Ruby' by Sandi Metz.)

    And then... I got a job. Nothing programming related, and an entirely new career path. I put my focus into this and enjoyed not having to panic too much about creating a programming career for myself immediately.

    Unfortunately, that's kind of where my programming journey ended. I kept thinking of getting back on the horse, but was mainly too lazy to try. But when I did try, I'd see the chess project next on my projects list, get stressed, and leave.

    Cut to a year later, and I've recently decided to just skip chess (gasp) and move straight to the Rails section. Who knew I could deviate from a set path?! The intro to Rails even expects that some users may not have completed all of Ruby! Great!

    So I start the Sinatra intro. Great! Work is still taking up most of my time, and laziness is still a factor - but I'm going to get past that now. My New Year's resolution ("new year new me"? bleugh) is to actually do things and stop making excuses.

    But then I get to the project. It wants me to use some of my old Ruby projects from over a year ago, written in my pre-Metz spaghetti code, designed to run in terminal, and shove that into a website.

    Really? Well, I suppose it's possible to copy bits of code and make it work...

    It doesn't help that I'm rusty by this point. Realistically though, I'm going to have to rewrite those projects or just write up something completely new, because the code, although functional, is appalling based on what I know now; entire programmes inside a single method!

    So yeah, here I am, faced with going back to writing silly games in Ruby. At this point, I'm not finding it interesting anymore. I'm having creeping feelings that back-end development may not be my thing, so I'm fearful that I've wasted a lot of time. I've still yet to create an actual website (bar a very simple one from a Rails intro from over a year ago) and it'll be months before I touch the front-end and get to HTML/CSS. Javascript still eludes me. I haven't seen many job adverts local to me (UK) that actually ask for Ruby/Rails experience.

    I don't know what I'm expecting from posting this here, and yes this is a form of procrastination, and yes I'm basically just having a moan.

    To try to sum up my feelings, I guess I'm just tired of Ruby. I want to be exposed to other languages. I'm tired of intros of intros of intros (the whole Sinatra section is just to help you understand what Rails is doing). I just don't have time to commit myself to another year of starting to learn things in languages I may not use in the real world. I'm also scared that I'll one day realise that development as a career just isn't for me.

    As per the title, I'm really hitting a wall here. I guess it would be nice to hear how other people feel, particularly about The Odin Project. Do I really need to spend such a long time learning all these programming concepts from the ground up? Can't that come later, i.e. when I'm on the job?

    I expect a lot of people will pick me up on some of the things I've moaned about and tell me I won't get anywhere unless I dedicate the time and effort. That's fair. I agree in advance. But for me, whilst TOP has taught me a lot and is clearly a fantastic fount of knowledge, I don't know if I can keep going on the long, long path it's laid out for me, to potentially discover that I don't actually enjoy development in practice.

    End moan. Congrats if you got this far (also, "Sorry!").

    submitted by /u/d_zer0
    [link] [comments]

    Best text editor for Chromebook?

    Posted: 01 Jan 2018 07:28 PM PST

    I'm currently using Caret, but I'm not super happy with it. I use Sublimetext on my PC and I love it, but unfortunately it's not available for Chromebook. Anyway, I can make this work if I have to, I just miss the shortcuts from Sublime... I'm thinking a cheap windows laptop might be my best bet! Anyone else using a Chromebook? Thanks in advance guys!

    submitted by /u/astrozombie2012
    [link] [comments]

    Am I making this harder for myself?

    Posted: 01 Jan 2018 11:11 PM PST

    For the past few months or so, I've been reading Java and I have plenty of books to read. I haven't been doing as much actual programming as I should be, but I will be doing more now that I have some more time. My goal, like a lot of people, is to make games. But my concern is, am I at a crutch because I want to make them in Java? I really would like to, seeing as I've put so much time, effort, and research into it already. Would it be better still, to just stop with it and focus on something like C++ for game programming? It seems like there are so many more resources for it, and the unity engine looks better than some of the sparse Java ones.

    submitted by /u/SaturnOne
    [link] [comments]

    Finding ip of anyone, non-local??

    Posted: 01 Jan 2018 06:57 PM PST

    Is there a command for either Mac or Ubuntu Linux that let's you find someones ip, not local?

    submitted by /u/Unknownone14
    [link] [comments]

    When addresses are initialized (ex: nodes in a linked list) shouldn't the compiler try to keep the memory close together like an array?

    Posted: 01 Jan 2018 04:38 PM PST

    In the data structures class I took a while ago, the biggest pro for an array was that the memory was sequential and therefore very fast. In theory, linked lists suffered because their data could be stored in addresses all over main memory.

    In my mind, this problem should be magnified significantly when you introduce caches. An array could avoid many cache misses whereas a linked list should only have cache misses, which slows down the program significantly.

    If the compiler has the chance, shouldn't it make a linked list behave like an array by making all of the data extremely close together to optimize the cache?

    I remember testing this out a while ago, and the virtual memory addresses were all over the place when printing the linked list addresses.

    submitted by /u/OutofPlaceOneLiner
    [link] [comments]

    C# Unreachable code detected

    Posted: 01 Jan 2018 10:16 PM PST

    Hi! So I'm making this game for my programming class, my teacher asked us to create a game in our choice and I chose not to make one you could easily find on Internet, but that's not the point. I'm getting the error " unreachable code detected " at " public static void CodesMenu " on " MainMenu (); " I used this combination on all of my code and only now I got this error and it's only here..

    I'll leave the code bellow so you can see it for yourself.. Thank you.

    using System; using System.Threading.Tasks;

    namespace RuiningTheWorld { class MainClass { public static void Main (string[] args) { Random x = new Random (); int banner = x.Next(1, 7);

     if (banner == 1) { Console.WriteLine (" __ __ "); Console.WriteLine ("| | | |"); Console.WriteLine ("| | | |"); Console.WriteLine ("| |__| |"); Console.WriteLine ("| __ |"); Console.WriteLine ("| | | |"); Console.WriteLine ("| | | |"); Console.WriteLine ("|__| |__|"); } else if (banner == 2) { Console.WriteLine (" ____"); Console.WriteLine (" / _ |"); Console.WriteLine (" / /| |"); Console.WriteLine (" / / | |"); Console.WriteLine (" / / | |"); Console.WriteLine (" / /___| |__"); Console.WriteLine ("/______ __|"); Console.WriteLine (" | |"); Console.WriteLine (" |_|"); } else if (banner == 3) { Console.WriteLine (" ________"); Console.WriteLine (" / _______|"); Console.WriteLine (" / /"); Console.WriteLine ("| |"); Console.WriteLine ("| |"); Console.WriteLine ("| |"); Console.WriteLine (" \\ \\_______"); Console.WriteLine (" \\________|"); } else if (banner == 4) { Console.WriteLine (" __ ___"); Console.WriteLine ("| | / /"); Console.WriteLine ("| | / /"); Console.WriteLine ("| | / /"); Console.WriteLine ("| |/ /"); Console.WriteLine ("| /"); Console.WriteLine ("| |\\ \\"); Console.WriteLine ("| | \\ \\"); Console.WriteLine ("| | \\ \\"); Console.WriteLine ("|__| \\_\\"); }else if (banner == 5) { Console.WriteLine (" _______________"); Console.WriteLine ("| ____________|"); Console.WriteLine ("| |"); Console.WriteLine ("| |"); Console.WriteLine ("| |_________"); Console.WriteLine ("| _________|"); Console.WriteLine ("| |"); Console.WriteLine ("| |"); Console.WriteLine ("| |____________"); Console.WriteLine ("|_______________|"); }else if (banner == 6) { Console.WriteLine (" __"); Console.WriteLine ("| \\"); Console.WriteLine ("||\\ \\"); Console.WriteLine ("|| \\ \\"); Console.WriteLine ("|| \\ \\"); Console.WriteLine ("|| | |"); Console.WriteLine ("|| / /"); Console.WriteLine ("|| / /"); Console.WriteLine ("|| / /"); Console.WriteLine ("||/ /"); Console.WriteLine ("|__/"); } Console.WriteLine ("Changing to color #$#%$..."); Console.WriteLine ("\n\n"); Console.WriteLine ("Press any key to stop this error..."); Console.ReadKey (); Console.Clear (); Console.ForegroundColor = ConsoleColor.Green; //The secret codes are here somewhere... Console.WriteLine ("gfh38ghjíurgerdsgirgbbgugbiçogçht849htuibgnwegio328yt8932hbgjutyrignskfgrwognwew"); Console.WriteLine ("vguwiegbewufhvntuhwetnhtp8thwnctcbfndfgrijrtthgrugnrth8vyr8thv8ty89t0t347tggoht8"); Console.WriteLine ("giwg4759nfy4«5yºvt,4ti34+0v40t9u4+v0tnu4vnv940untv4t0utn4tu4n3tvut9uqeowhfngfggr"); Console.WriteLine ("buwatiy83p49grjkgbbreyo95wy4neahjn5+960u9u5y4+9wnu5yb95uyn54y9+ub95n+ybn9wy5upir"); Console.WriteLine ("gergnreothnv34tvnggj48tvn84t4qvpth4t8y84pthvn8th8hcthpqe48t48ct4et84crypt4y8tccn"); Console.WriteLine ("uetvnpreyhvrltnv46u5y8tuy034u6hf74t+40ht3h75q3hv58y4h84y5485hy84y684yytvrnvyvtnv"); Console.WriteLine ("fjbvug4b743oytnv8nvhp4qt8y8pnv8rihvtn4oht8n4çt43nchhgjheoçy84ytncghregnhert4y8vt"); Console.WriteLine ("fhbsgpov8arlriauvhrletvn8ryter8tvneroatyvnrvtily489ytvn89y48t4y489tve4tv8o8rtry8"); Console.WriteLine ("ewutrb48ty349t8y3qp4qypnvrev8yt8q4yvtn8y489tq4yhjighju457ycyretvhhtvyu6morkuu4wu"); Console.WriteLine ("54yi56u6byq6q3bfnhgjkstavrtv4u5uyev4atvtjehtn4ht489tivnjt8u4t4utntry5byetuv4tn4n"); Console.WriteLine ("wejtubvgeiutqucigtquilgvlluiebghhHACKEDnwhtvb4y8t4phqtibvtovu4t4wnh5y5yy5qq5ghth"); Console.WriteLine ("fghtyim67e55y5bliutydyaertvhkjhdrddfdtkliuyipoiuye4zsetbyjklyoiytfuryhtjyibiytuj"); Console.WriteLine ("eugbiuacnt4tnncinhlqoqlgjbngjfdgjarenesgfvbnvsdfgrhjdystyuntrytrbytryytyybyhngfh"); Console.WriteLine ("gjhriugaheiewvntew8vtnwe8yt89wygt8wtvnuteheiownvt8wyw8towv88oya8otv8yey8tay8et8v"); Console.WriteLine ("çatrt734nvqç9rnva9erunaiurtnv9tanço8tvaeyçot8nveta8çyvqtt8qtçot9nvqtçtovtn8tqçt8"); Console.WriteLine ("çlkjhbgvcfdxfghjknljhbgvfcdrxsefdgrutfhigyjuojbvthufyrdvteybunmikoubijyhutyvbufu"); Console.WriteLine ("ftdyrvtsyxubcihvjhbgvfhfbjkjhjgfhetuiolikjhtEzshdfjxgfklgulukyjtrhyetyuiytjrsuij"); Console.WriteLine ("gfh38ghjíurgNERDgirgbbgugbiçogçht849htuibgnwegio328yt8932hbgjutyrignskfgrwognwew"); Console.WriteLine ("rtsbyutsinyfgthyuyhjgvfdrtyuhijkojlmknbvcfdsertyuiokjnmbvbnmjkijhnbvgfrdvgfbghgy"); Console.WriteLine ("tyrtratvsydbuinfofukjbhvgdfghjkmnjbvgcfdxcfvbnmjkyuhtrfeefcvgbhnjukmjnhyujnhbghg"); Console.WriteLine ("sreyurdibkyjdtubeinomptubiront8or6i756uwq46vywu8hi7be6urwvybunij98h7w8b9h5e86sbb"); Console.WriteLine ("ugbr7e5t4lttgngfhdfhbtwrysvwhjtrbsytreatvstjbutvrytybuvyefghLUAVEROtevc8gudshfn8"); Console.WriteLine ("ukjyetrikb6u546btytynujoufniybutvtjnkmuminjbhtvrtfygurybui76u5bino87b6uv5ub6inbi"); Console.WriteLine ("byti6u5yvtybu6in7866i7rbuyvtvy5ub6in7okbu5yv6ni7o8y7it6ur5yub6i7nunk7i6ubuin7oit"); Console.WriteLine ("\n"); Console.WriteLine ("PR3$$ 4NY K3Y T0 (0NT1NU3..."); Console.ReadKey (); Console.Clear (); MainMenu (); } public static void MainMenu () { Console.Clear (); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine (" __________________________________"); Console.WriteLine (" / \\"); Console.WriteLine ("/ _________________________________ \\"); Console.WriteLine ("| | | |"); Console.WriteLine ("| | | |"); Console.WriteLine ("| | [1] Campaing | |"); Console.WriteLine ("| | [2] Minigames | |"); Console.WriteLine ("| | [3] Secret Codes (Soon) | |"); Console.WriteLine ("| | [0] Logout | |"); Console.WriteLine ("| | | |"); Console.WriteLine ("| |_________________________________| |"); Console.WriteLine ("\\ /"); Console.WriteLine (" \\__________________________________/"); Console.Write ("root@Hacker:~# "); int opMenu = Int32.Parse (Console.ReadLine ()); while (opMenu != 0) { if (opMenu == 1) { CampaingMenu (); } else if (opMenu == 2) { MiniMenu (); } else if (opMenu == 3) { CodesMenu (); } else if (opMenu == 0) { Console.Clear (); Console.WriteLine ("Going out?"); Console.WriteLine ("See you soon..."); Environment.Exit (0); } break; } } //Campaing public static void CampaingMenu (){ Console.Clear (); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine ("(Disclaimer)"); Console.WriteLine ("This game is still in development so it might have a few bugs, if you find any, be free to fix it or let me know so I can fix it."); Console.WriteLine ("Have fun!"); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("In this game you're basicaly an hacker, I think that's prety clear but I had to make sure you knew it!"); Console.WriteLine ("\n"); Console.WriteLine ("You just have to remember this:"); Console.WriteLine ("This game is full of tricks, think before you do something..."); Console.WriteLine ("And... if you check the source code to win the game, I must say..."); Console.WriteLine ("Delete my game from your computer!"); Console.WriteLine ("Have fun!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Pro tip:"); Console.WriteLine ("The first code you need to keep playing the campaing it's in the middle of many words!"); Console.WriteLine ("It starts with a 9 and ends with a 3"); Console.WriteLine ("Good Luck ;)"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("\n\n"); Console.WriteLine ("\n\n"); Console.WriteLine ("\n\n"); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine (" Ruining The World"); Console.WriteLine ("\n\n"); Console.WriteLine (" I had no more money for special effects so just press any key..."); Console.ReadKey (); Console.ForegroundColor = ConsoleColor.White; Console.Clear (); Console.WriteLine (" ______________________________________________________________________________"); Console.WriteLine (" | | | |"); Console.WriteLine (" | | | |"); Console.WriteLine (" | (2) | (1) | |"); Console.WriteLine (" | Bathroom | Bedroom | |"); Console.WriteLine (" | | | |"); Console.WriteLine (" | | | |"); Console.WriteLine (" | | | |"); Console.WriteLine (" |________ \\__________|____________ \\__________| |"); Console.WriteLine (" | |"); Console.WriteLine (" | |"); Console.WriteLine (" |________ _______________ |"); Console.WriteLine (" | / | (4) |"); Console.WriteLine (" | | Nothing (yet) |"); Console.WriteLine (" | | |"); Console.WriteLine (" | (3) | |"); Console.WriteLine (" | Kitchen | |"); Console.WriteLine (" | | |"); Console.WriteLine (" | | |"); Console.WriteLine (" |_________________________|__________________________________________________|"); Console.WriteLine ("Where do you want to go?"); Console.Write ("root@Hacker:~# "); int ophouse = Int32.Parse (Console.ReadLine ()); if (ophouse == 93) { StartGameMenu (); } else if (ophouse == 1) { BedMenu (); } else if (ophouse == 2) { BathMenu (); } else if (ophouse == 3) { KitMenu (); } else if (ophouse == 4) { NothingMenu (); } } public static void StartGameMenu () { Console.Clear (); Console.WriteLine ("Well Played, you got through the first step!"); Console.WriteLine ("Now we can start!"); Console.WriteLine ("Tell me your name"); Console.Write ("root@Hacker:~# "); string name = Console.ReadLine (); Console.Clear (); Console.WriteLine ("I see, so your name is "+name); Console.WriteLine ("And where are you from?"); Console.Write ("root@Hacker:~# "); string localization = Console.ReadLine (); Console.Clear (); Console.WriteLine ("So you're "+name+" and you're from "+localization); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to keep going..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Great, I have all your intel now!"); Console.WriteLine ("You ain't going far doing that!"); Console.WriteLine ("\n"); Console.WriteLine ("I'm just kidding bro!"); Console.WriteLine ("Welcome to PBytes!"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Chapter1 (); } //Chapters menu public static void Chapter1 () { Console.Clear (); Console.WriteLine ("\n\n"); Console.WriteLine ("\n\n"); Console.WriteLine ("\n\n"); Console.WriteLine (" Chapter 1: "); Console.WriteLine ("\n"); Console.WriteLine (" Password Cracker..."); } //Jokes menu public static void BedMenu () { Console.Clear (); Console.WriteLine ("Goodnight sleeping beauty..."); Console.WriteLine ("Now, I'll close the game."); } public static void BathMenu () { Console.Clear (); Console.WriteLine ("Oh poor boy, you got dirty?"); Console.WriteLine ("Go take a shower..."); Console.WriteLine ("Now, I'll just close the game."); } public static void KitMenu () { Console.Clear (); Console.WriteLine ("Aren't you fat enough?"); Console.WriteLine ("Closing the game..."); } public static void NothingMenu () { Console.Clear (); Console.WriteLine ("Dude don't you know how to read?"); Console.WriteLine ("This place it's called NOTHING, what did you expect to find?"); Console.WriteLine ("Now just because of that, I'll close the game!"); } //Minigames zone public static void MiniMenu (){ Console.Clear (); Console.WriteLine ("Welcome to the minigames!"); Console.WriteLine ("What game do you wish to play?"); Console.WriteLine ("\n"); Console.WriteLine ("[1] DDoS Game"); Console.WriteLine ("[2] SQL Injection Game"); Console.WriteLine ("[0] Main Menu"); Console.Write ("root@Hacker:~# "); int opGame = Int32.Parse (Console.ReadLine ()); if (opGame == 1) { DDoSMenu (); } else if (opGame == 2) { SQLiMenu (); } else if (opGame == 0) { MainMenu (); } } public static void DDoSMenu () { int w = 999; while (w != 0) { string name; int dificulty; Console.Clear (); Console.WriteLine ("Welcome to the DDoS Game!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Are you going to attack alone or with a team?"); Console.WriteLine ("[1] Alone (Normal)"); Console.WriteLine ("[2] Team (Easy)"); Console.Write ("Choice: "); dificulty = Int32.Parse (Console.ReadLine ()); if (dificulty == 1) { Console.Clear (); Console.WriteLine ("What's your hackers name?"); name = Console.ReadLine (); Console.Clear (); Console.WriteLine ("Saving name in Data Base"); Console.WriteLine ("Shall we begin?"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("[1] Get a random ip"); Console.WriteLine ("[2] Use an ip of your own"); int op = Int32.Parse (Console.ReadLine ()); Console.Clear (); if (op == 1) { Random rnd = new Random (); int ip1 = rnd.Next (1, 256); int ip2 = rnd.Next (1, 256); int ip3 = rnd.Next (1, 256); int ip4 = rnd.Next (1, 256); Console.WriteLine ("An ip was found!"); Console.WriteLine (ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine ("Do you want to take it down?"); Console.WriteLine ("[1] yes"); Console.WriteLine ("[2] no"); int op2 = Int32.Parse (Console.ReadLine ()); if (op2 == 1) { int x = rnd.Next (1, 3000); int x2 = rnd.Next (1, 2800); int x3 = rnd.Next (1, 2600); int x4 = rnd.Next (1, 2400); int x5 = rnd.Next (1, 2200); int x6 = rnd.Next (1, 2000); int x7 = rnd.Next (1, 1800); int x8 = rnd.Next (1, 1600); int x9 = rnd.Next (1, 1500); int x10 = rnd.Next (1, 1500); int z = rnd.Next (1, 3000); int z2 = rnd.Next (1, 2800); int z3 = rnd.Next (1, 2600); int z4 = rnd.Next (1, 2400); int z5 = rnd.Next (1, 2200); int z6 = rnd.Next (1, 2000); int z7 = rnd.Next (1, 1800); int z8 = rnd.Next (1, 1600); int z9 = rnd.Next (1, 1500); int z10 = rnd.Next (1, 1500); Console.WriteLine ("Attacking " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x2 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x3 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x4 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x5 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x6 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x7 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x8 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x9 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x10 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); if (x == z || x2 == z2 || x3 == z3 || x4 == z4 || x5 == z5 || x6 == z6 || x7 == z7 || x8 == z8 || x9 == z9 || x10 == z10) { Console.WriteLine ("You sucessfully took down the ip!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Today's news!"); Console.WriteLine ("\n"); Console.WriteLine ("The hacker " + name + " just took down one of most important company in the world!"); Console.WriteLine ("\n"); Console.WriteLine ("The company had to close because of the amount of money lost, the FBI is looking for this hacker. Stay tunned for more informations!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } else { Console.WriteLine ("Try again later..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } } else if (op2 == 2) { Environment.Exit (0); } } else if (op == 2) { string ip; Random ipx = new Random (); Console.Clear (); Console.Write ("Ip: "); ip = Console.ReadLine (); int x = ipx.Next (1, 3000); int x2 = ipx.Next (1, 2800); int x3 = ipx.Next (1, 2600); int x4 = ipx.Next (1, 2400); int x5 = ipx.Next (1, 2200); int x6 = ipx.Next (1, 2000); int x7 = ipx.Next (1, 1800); int x8 = ipx.Next (1, 1600); int x9 = ipx.Next (1, 1500); int x10 = ipx.Next (1, 1500); int z = ipx.Next (1, 3000); int z2 = ipx.Next (1, 2800); int z3 = ipx.Next (1, 2600); int z4 = ipx.Next (1, 2400); int z5 = ipx.Next (1, 2200); int z6 = ipx.Next (1, 2000); int z7 = ipx.Next (1, 1800); int z8 = ipx.Next (1, 1600); int z9 = ipx.Next (1, 1500); int z10 = ipx.Next (1, 1500); Console.WriteLine ("Attacking " + ip); Console.WriteLine (x + " bytes were sent to " + ip); Console.WriteLine (x2 + " bytes were sent to " + ip); Console.WriteLine (x3 + " bytes were sent to " + ip); Console.WriteLine (x4 + " bytes were sent to " + ip); Console.WriteLine (x5 + " bytes were sent to " + ip); Console.WriteLine (x6 + " bytes were sent to " + ip); Console.WriteLine (x7 + " bytes were sent to " + ip); Console.WriteLine (x8 + " bytes were sent to " + ip); Console.WriteLine (x9 + " bytes were sent to " + ip); Console.WriteLine (x10 + " bytes were sent to " + ip); if (x == z || x2 == z2 || x3 == z3 || x4 == z4 || x5 == z5 || x6 == z6 || x7 == z7 || x8 == z8 || x9 == z9 || x10 == z10) { Console.WriteLine ("You sucessfully took down the ip!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Today's news!"); Console.WriteLine ("\n"); Console.WriteLine ("The hackers team " + name + " just took down one of most important company in the world!"); Console.WriteLine ("\n"); Console.WriteLine ("The company had to close because of the amount of money lost, the FBI is looking for this hacker. Stay tunned for more informations!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } else { Console.WriteLine ("Try again later..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } } } else if (dificulty == 2) { Console.Clear (); Console.WriteLine ("What's your hackers team name?"); name = Console.ReadLine (); Console.Clear (); Console.WriteLine ("Saving name in Data Base"); Console.WriteLine ("\n"); Console.WriteLine ("Shall we begin?"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("[1] Get a random ip"); Console.WriteLine ("[2] Use an ip of your own"); int op = Int32.Parse (Console.ReadLine ()); Console.Clear (); if (op == 1) { Random rnd = new Random (); int ip1 = rnd.Next (1, 256); int ip2 = rnd.Next (1, 256); int ip3 = rnd.Next (1, 256); int ip4 = rnd.Next (1, 256); Console.WriteLine ("An ip was found!"); Console.WriteLine (ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine ("Do you want to take it down?"); Console.WriteLine ("[1] yes"); Console.WriteLine ("[2] no"); int op2 = Int32.Parse (Console.ReadLine ()); if (op2 == 1) { int x = rnd.Next (1, 2000); int x2 = rnd.Next (1, 1900); int x3 = rnd.Next (1, 1800); int x4 = rnd.Next (1, 1700); int x5 = rnd.Next (1, 1500); int x6 = rnd.Next (1, 1000); int x7 = rnd.Next (1, 950); int x8 = rnd.Next (1, 900); int x9 = rnd.Next (1, 900); int x10 = rnd.Next (1, 900); int z = rnd.Next (1, 2000); int z2 = rnd.Next (1, 1900); int z3 = rnd.Next (1, 1800); int z4 = rnd.Next (1, 1700); int z5 = rnd.Next (1, 1500); int z6 = rnd.Next (1, 1000); int z7 = rnd.Next (1, 950); int z8 = rnd.Next (1, 900); int z9 = rnd.Next (1, 900); int z10 = rnd.Next (1, 900); Console.WriteLine ("Attacking " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x2 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x3 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x4 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x5 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x6 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x7 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x8 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x9 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); Console.WriteLine (x10 + " bytes were sent to " + ip1 + "." + ip2 + "." + ip3 + "." + ip4); if (x == z || x2 == z2 || x3 == z3 || x4 == z4 || x5 == z5 || x6 == z6 || x7 == z7 || x8 == z8 || x9 == z9 || x10 == z10) { Console.WriteLine ("You sucessfully took down the ip!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Today's news!"); Console.WriteLine ("\n"); Console.WriteLine ("The hackers team " + name + " just took down one of most important company in the world!"); Console.WriteLine ("\n"); Console.WriteLine ("The company had to close because of the amount of money lost, the FBI is looking for this hackers team. Stay tunned for more informations!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } else { Console.WriteLine ("Try again later..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } } else if (op2 == 2) { Environment.Exit (0); } } else if (op == 2) { string ip; Random ipx = new Random (); Console.Clear (); Console.Write ("Ip: "); ip = Console.ReadLine (); int x = ipx.Next (1, 2000); int x2 = ipx.Next (1, 1900); int x3 = ipx.Next (1, 1800); int x4 = ipx.Next (1, 1700); int x5 = ipx.Next (1, 1600); int x6 = ipx.Next (1, 1500); int x7 = ipx.Next (1, 1000); int x8 = ipx.Next (1, 950); int x9 = ipx.Next (1, 900); int x10 = ipx.Next (1, 900); int z = ipx.Next (1, 2000); int z2 = ipx.Next (1, 1900); int z3 = ipx.Next (1, 1800); int z4 = ipx.Next (1, 1700); int z5 = ipx.Next (1, 1600); int z6 = ipx.Next (1, 1500); int z7 = ipx.Next (1, 1000); int z8 = ipx.Next (1, 950); int z9 = ipx.Next (1, 900); int z10 = ipx.Next (1, 900); Console.WriteLine ("Attacking " + ip); Console.WriteLine (x + " bytes were sent to " + ip); Console.WriteLine (x2 + " bytes were sent to " + ip); Console.WriteLine (x3 + " bytes were sent to " + ip); Console.WriteLine (x4 + " bytes were sent to " + ip); Console.WriteLine (x5 + " bytes were sent to " + ip); Console.WriteLine (x6 + " bytes were sent to " + ip); Console.WriteLine (x7 + " bytes were sent to " + ip); Console.WriteLine (x8 + " bytes were sent to " + ip); Console.WriteLine (x9 + " bytes were sent to " + ip); Console.WriteLine (x10 + " bytes were sent to " + ip); if (x == z || x2 == z2 || x3 == z3 || x4 == z4 || x5 == z5 || x6 == z6 || x7 == z7 || x8 == z8 || x9 == z9 || x10 == z10) { Console.WriteLine ("You sucessfully took down the ip!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Today's news!"); Console.WriteLine ("\n"); Console.WriteLine ("The hackers team " + name + " just took down one of most important company in the world!"); Console.WriteLine ("\n"); Console.WriteLine ("The company had to close because of the amount of money lost, the FBI is looking for this hackers team. Stay tunned for more informations!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } else { Console.WriteLine ("Try again later..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } } } break; } } public static void SQLiMenu () { int w = 99; while (w != 0) { int dificulty; Console.Clear (); Console.WriteLine ("Welcome to the SQL Injection Game!"); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Are you going to attack alone or with a team?"); Console.WriteLine ("[1] Alone (Normal)"); Console.WriteLine ("[2] Team (Easy)"); Console.WriteLine ("\n"); Console.Write ("Choice: "); dificulty = Int32.Parse (Console.ReadLine ()); if (dificulty == 1) { Console.Clear (); Console.WriteLine ("What's your hacker name?"); string name = Console.ReadLine (); Console.Clear (); Console.WriteLine ("Saving name in data base..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("What website will you attack?"); string site = Console.ReadLine (); Console.Clear (); Console.WriteLine ("SQL Injection started on " + site); Console.WriteLine ("\n"); Random s = new Random (); int n1 = s.Next (1, 3001); int n2 = s.Next (1, 2501); int n3 = s.Next (1, 2001); int n4 = s.Next (1, 1501); int n5 = s.Next (1, 1001); int n6 = s.Next (1, 501); int n7 = s.Next (1, 501); int n8 = s.Next (1, 501); int n9 = s.Next (1, 501); int n10 = s.Next (1, 501); int z = s.Next (1, 3001); int z2 = s.Next (1, 2501); int z3 = s.Next (1, 2001); int z4 = s.Next (1, 1501); int z5 = s.Next (1, 1001); int z6 = s.Next (1, 501); int z7 = s.Next (1, 501); int z8 = s.Next (1, 501); int z9 = s.Next (1, 501); int z10 = s.Next (1, 501); Console.WriteLine ("First injection started on " + site); Console.WriteLine ("Second injection started on " + site); Console.WriteLine ("Third injection started on " + site); Console.WriteLine ("Fourth injection started on " + site); Console.WriteLine ("Fifth injection started on " + site); Console.WriteLine ("Sixth injection started on " + site); Console.WriteLine ("Seventh injection started on " + site); Console.WriteLine ("Eighth injection started on " + site); Console.WriteLine ("Ninth injection started on " + site); Console.WriteLine ("Tenth injection started on " + site); if (n1 == z || n2 == z2 || n3 == z3 || n4 == z4 || n5 == z5 || n6 == z6 || n7 == z7 || n8 == z8 || n9 == z9 || n10 == z10) { Console.Clear (); Console.WriteLine ("You sucessfully attacked " + site); Console.WriteLine ("\n"); Console.WriteLine ("Loading data base..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to access data base..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("========================================|"); Console.WriteLine ("| Passwords: **************** |"); Console.WriteLine ("| *********** |"); Console.WriteLine ("| ****************** |"); Console.WriteLine ("| ******** |"); Console.WriteLine ("| |"); Console.WriteLine ("|=======================================|"); Console.WriteLine ("| Emails: ********@gmail.com |"); Console.WriteLine ("| ************@gmail.com |"); Console.WriteLine ("| *****@hotmail.com |"); Console.WriteLine ("| **********@sapo.pt |"); Console.WriteLine ("| |"); Console.WriteLine ("|=======================================|"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("One of the largest website just got hacked by the hacker " + name); Console.WriteLine ("The website is now under some dificulties and says for everyone to change their password on every website they use. FBI is trying to find this hacker."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } else { Console.Clear (); Console.WriteLine ("You failed the injection, try again later..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } } else if (dificulty == 2) { Console.Clear (); Console.WriteLine ("What's your hackers team name?"); string name = Console.ReadLine (); Console.Clear (); Console.WriteLine ("Saving name in data base..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("What website will you guys attack?"); string site = Console.ReadLine (); Console.Clear (); Console.WriteLine ("SQL Injection started on " + site); Console.WriteLine ("\n\n"); Random s = new Random (); int n1 = s.Next (1, 1001); int n2 = s.Next (1, 1001); int n3 = s.Next (1, 1001); int n4 = s.Next (1, 1501); int n5 = s.Next (1, 1001); int n6 = s.Next (1, 801); int n7 = s.Next (1, 801); int n8 = s.Next (1, 401); int n9 = s.Next (1, 301); int n10 = s.Next (1, 101); int z = s.Next (1, 1001); int z2 = s.Next (1, 1001); int z3 = s.Next (1, 1001); int z4 = s.Next (1, 1501); int z5 = s.Next (1, 1001); int z6 = s.Next (1, 801); int z7 = s.Next (1, 801); int z8 = s.Next (1, 401); int z9 = s.Next (1, 301); int z10 = s.Next (1, 101); Console.WriteLine ("First injection started on " + site); Console.WriteLine ("Second injection started on " + site); Console.WriteLine ("Third injection started on " + site); Console.WriteLine ("Fourth injection started on " + site); Console.WriteLine ("Fifth injection started on " + site); Console.WriteLine ("Sixth injection started on " + site); Console.WriteLine ("Seventh injection started on " + site); Console.WriteLine ("Eighth injection started on " + site); Console.WriteLine ("Ninth injection started on " + site); Console.WriteLine ("Tenth injection started on " + site); if (n1 == z || n2 == z2 || n3 == z3 || n4 == z4 || n5 == z5 || n6 == z6 || n7 == z7 || n8 == z8 || n9 == z9 || n10 == z10) { Console.Clear (); Console.WriteLine ("Sucessfuly accessed " + site); Console.WriteLine ("\n"); Console.WriteLine ("Loading data base..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to access data base..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("========================================|"); Console.WriteLine ("| Passwords: **************** |"); Console.WriteLine ("| *********** |"); Console.WriteLine ("| ****************** |"); Console.WriteLine ("| ******** |"); Console.WriteLine ("| |"); Console.WriteLine ("|=======================================|"); Console.WriteLine ("| Emails: ********@gmail.com |"); Console.WriteLine ("| ************@gmail.com |"); Console.WriteLine ("| *****@hotmail.com |"); Console.WriteLine ("| **********@sapo.pt |"); Console.WriteLine ("| |"); Console.WriteLine ("|=======================================|"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); Console.Clear (); Console.WriteLine ("Todays news!"); Console.WriteLine ("\n\n"); Console.WriteLine ("One of the largest website just got hacked by the hacker " + name); Console.WriteLine ("The website is now under some dificulties and says for everyone to change their password on every website they use. FBI is trying to find this hacker."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } else { Console.Clear (); Console.WriteLine ("\n"); Console.WriteLine ("You failed the injection, try again later..."); Console.WriteLine ("\n"); Console.WriteLine ("Press any key to continue..."); Console.ReadKey (); MainMenu (); } } break; } } public static void CodesMenu (){ Console.Clear (); int w = 99; while (w != 0) { Console.WriteLine ("There are 4 secret codes for you to find..."); Console.WriteLine ("Good luck on your journey!"); Console.WriteLine ("Input the secret code"); Console.WriteLine ("\n"); Console.Write ("root@Hacker:~# "); int code = Int32.Parse (Console.ReadLine ()); if (code == 81354) { Console.Clear (); Console.WriteLine ("Congrats you got the secret code right!"); Console.WriteLine ("81354 = HACKED"); Console.WriteLine ("\n"); Console.WriteLine ("Now, I'm sorry to say this, but this 'secret code' doesn't hide anything, it's to easy to find this one..."); Console.WriteLine ("Good luck next time..."); } break; MainMenu (); } } } 

    }

    submitted by /u/BernardoPiedade
    [link] [comments]

    No comments:

    Post a Comment