Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HardCodedShadow

Pages: [1] 2
1
Web Oriented Coding / Re: Javascript
« on: July 17, 2015, 01:03:08 pm »
Ok, so JSON (JavaScript Object Notation) has very few if nothing in comon with JS (JavaScript), even though JS can be used to write JSON files.

JSON is a format for storing informations in complex trees. It's useful for object serialization and deserialization, that means turning object data into a  JSON file, and vice versa. It is also widely used for general purpose information storing.

JSON is very popular, because:
- it is easy to read and write by humans
- it is easy to parse and generate by computers

JSON can be used as well in JavaScript as in C++, Java, Python and other languages.
How a JSON is created totally depends on the language you're using.

Useful link:
http://lmgtfy.com/?q=json&l=1

2
Java / Re: 21 Sticks game
« on: July 15, 2015, 02:03:53 am »
If you enter a value like  1.337, which is a double, it will throw an exception.
Here's a fix: http://stackoverflow.com/questions/2143797/how-to-deal-with-accidental-input-of-a-double-when-using-nextint-in-java

3
Beginner's Corner / Re: Useful sites to begin programming
« on: July 14, 2015, 09:08:13 am »
I agree with CodeCademy, I've learnt Python, my first language, here and I found these tutorials very helpful to start with programming.
Being a good starting point, this will still not teach you enough to actually do interesting things,
what I did was just code and ask questions on StackOverflow, search what certain libraries can do etc.

4
Thank you for both of your post related to finding directory listings!
Was very useful.
+1

5
Beginner's Corner / Re: Career
« on: July 13, 2015, 01:18:20 am »
@shome
Stop googling ?

Not sure I agree with that one. Google is the nectar of the God's for me.

Don't get me wrong,
I agree Google is a very useful tool, but you need to know the limits.
Many people tend to spend their time to search a 'golden bullet' and never get to doing things.
Finding a good starting point of course is very helping if not primordial. But once you get one, do things, don't waste time asking and searching a more convenient way to learn,
that's what I meant.

He already has a starting point:
I plan to cover concepts on Operating Systems, Networking and stuff....

But he still searches instead of starting to learn:
Googled a lot but I am still confused :(

@OP:
Install Linux, start learning about networking, and the rest will come itself.
Also, make sure to check the first link in my first post, it may very well introduce you to these subjects. Especially Linux, networking and penetration testing.

6
Beginner's Corner / Re: Career
« on: July 12, 2015, 06:18:22 pm »
Yes, learning how operating systems work and networking is perfectly fine,
learn Linux/Unx, but learn, stop Googling, it's a time waste and you'll find nothing, instead do things, ask questions on specific problems, solve problems.
Don't try to be an expert right away, that will get you nowhere. There's no golden bullet, only hard work will get you to the top.

Useful links:
https://pentesterlab.com/bootcamp
https://evilzone.org/hacking-and-security/where-to-start-with-hacking/
https://evilzone.org/hacking-and-security/evilzone%27s-official-rfi-training-script/

7
Beginner's Corner / Re: Python is good for hacking or Ruby?
« on: July 11, 2015, 10:56:08 pm »
I'd recommend going for Python:
1) It has a bigger standard library
2) It's faster
3) It has a much bigger community (good for beginners)

Other than that they're pretty similar languages.

Also, some useful links:
https://www.blackhat.com/presentations/bh-usa-09/TRACY/BHUSA09-Tracy-RubyPentesters-PAPER.pdf
https://evilzone.org/ebooks/black-hat-python-python-programming-for-hackers-%28dec-2014%29/
https://evilzone.org/ebooks/violent-python-a-cookbook-for-hackers/

8
News and Announcements / Re: Hallo
« on: July 11, 2015, 08:16:23 pm »
Congratulations! Well deserved.
HardCodedShadow bows to HTH as well

9
C - C++ / Re: application of C++ in the finance world??
« on: July 11, 2015, 02:40:07 am »
You should be able to make decent programs,
if you know only what classes and objects are, I doubt that job's for you.
You need to be fluent and know what you are doing, have a deeper understanding of the language.
If you wanna work as a developer/programmer, learn to code first.

10
Anonymity and Privacy / Re: Question about ScriptBlock
« on: July 11, 2015, 02:30:08 am »
On a website you may have many different scripts running. If you whitelist only scripts coming from certain websites, it may act as a sort of figerprint if you see what I mean.
The server can check if the script was executed or not to see your whitelisted websites/services.
This means if you visit few sites and allow script executing on them, other websites can try to detect your whitelisted websites and thus distinguish you as an individual.

11
Hacking and Security / Re: Compiler for C++
« on: July 09, 2015, 11:28:37 pm »
Depends on what system you are using.
I use the g++ (https://gcc.gnu.org/) compiler which is also available for Windows users through MinGW (http://www.mingw.org/).

Other than that, you should post such threads in the Programming Newbies forums.
Also, what you said proves you couldn't develop a Trojan (without skidding it)

12
Game Hacking, Modding & Discussing / [Java] Minecraft Criticals
« on: July 09, 2015, 11:12:38 pm »
Hey, decided to post one of my (worse) exploits for the Minecraft game.
This is supposed to make you do criticals. One some servers you may need to jump once before it works.
If you know Java this will be very easy to implement, if not, this post is probably not for you.

This basically works on this principle:
To make a critical hit, you need to have some fall damage, which happens when you move down in the air, generally while jumping. When the player lands, the fall damage resets back to zero and you make normal hits again. To get around this we will need to modify outgoing packets to make the server think you didn't land - that means setting the C03PacketPlayer's onGround data to false.

I don't know how to make it more obvious so here's the code:

Code: [Select]
package me.hardcodedshadow.client.module.modules.combat;

import me.hardcodedshadow.client.Client
import me.hardcodedshadow.client.event.EventTarget;
import me.hardcodedshadow.client.event.Listener;
import me.hardcodedshadow.client.event.events.EventPlayerUpdate;
import me.hardcodedshadow.client.event.events.EventPostMotionUpdate;
import me.hardcodedshadow.client.event.events.EventPreMotionUpdate;
import me.hardcodedshadow.client.module.Module;
import net.minecraft.block.material.Material;
import net.minecraft.client.entity.EntityPlayerSP;

public class Criticals extends Module implements Listener
{

    boolean wasOnGround = true;
    double fallDistance = 0;
    double newFallDistance = 0;

    public Criticals()
    {
        super("Criticals", Category.COMBAT, "Always make a critical hit");
    }

    @Override
    public void onEnable()
    {
        registry.registerListener(this);

        if (Minecraft.getMinecraft().thePlayer != null)
        {
            newFallDistance = Minecraft.getMinecraft().thePlayer.fallDistance;

        }
        else
        {
            fallDistance = 0;
            newFallDistance = 0;
        }
    }

    @Override
    public void onDisable()
    {
        registry.unregisterListener(this);
        fallDistance = 0;
        newFallDistance = 0;
    }

    private boolean isSafe(final EntityPlayerSP entity)
    {
        return entity.inWater || entity.isOnLadder() || entity.isInsideOfMaterial(Material.lava);
    }
   
    @EventTarget
    public void onUpdate(final EventPlayerUpdate event)
    {
        if (event.thePlayer.onGround && fallDistance == 0){
            event.thePlayer.motionY = 0.1;
        }
    }
   
    @EventTarget
    public void onPreUpdate(final EventPreMotionUpdate event)
    {
        wasOnGround = event.thePlayer.onGround;

        if (!isSafe(event.thePlayer))
        {
            if (event.thePlayer.fallDistance > newFallDistance)
                newFallDistance = event.thePlayer.fallDistance;
           
            if (event.thePlayer.fallDistance == 0)
            {
                fallDistance += newFallDistance;
                newFallDistance = 0;
            }
        } else {
            fallDistance = 0;
            newFallDistance = 0;
        }

        if (fallDistance >= 3 && wasOnGround){
            fallDistance = 0;
            newFallDistance = 0;
        }
        else if (fallDistance > 0){
            event.thePlayer.onGround = false;
        }
    }

    @EventTarget
    public void onPostUpdate(final EventPostMotionUpdate event)
    {
        event.thePlayer.onGround = wasOnGround;
    }
}


I hope the code is readable and sorry for not commenting.
I use an EventManager, but I'm sure you guys will be able to hook it to the right place.

13
General discussion / Re: Post your deskTOP
« on: July 09, 2015, 08:16:56 am »
Would be a lot more fun, if you had customized it a bit.

I agree, but I am not at home and only have my netbook with me, which I couldn't be bothered customizing. Also I think I will soon switch to ArchLinux ;) CrunchBang is dead ;(

14
Creative Arts / Re: The Music Thread
« on: July 09, 2015, 07:54:57 am »
These are my favorite songs:

Adoxe - Ennui
https://www.youtube.com/watch?v=64B6CxiLhXs
Besnine & Raphael - Sulu Archipelago
https://www.youtube.com/watch?v=pdrBeqircCA
Madeon - Finale
https://www.youtube.com/watch?v=Vois0RMtPHE
Teminite - Evolution (or anything else from Teminite <3)
https://www.youtube.com/watch?v=1QYXgKe-HyU

15
General discussion / Re: Post your deskTOP
« on: July 09, 2015, 07:48:25 am »
http://postimg.org/image/7x9lw3b69/
CrunchBang here. Simple, yet beautiful.

Pages: [1] 2