Slavi 94 Master Poster Featured Poster

I agree with rubben, could be cost issue and they'd rather not deal with it until its too late, thats why #DFIR is becoming so popular (Hey I got hacked, come and fix everything as it didn't happen)

Although it's understandable to not spend money on top of what has already been, I guess it's better to do spend some rather than be left out of business, some of those organisations' web servers are quite popular and are visited tens of thousands of times daily. That really exposes a lot of customers and the company as well, i mean even a simple XXS can be catastrophic, such as redirect user to a similiar looking page with a big red text saying please download our new protect's update it has awesome features .. well you could imagine what those features are :D

Slavi 94 Master Poster Featured Poster

They either don't understand the risks or they just don't care about protecting sensitive data. Think heartbleed is ranked #1 critical flaw for 2014 followed by shellshocker

Slavi 94 Master Poster Featured Poster

I would go with stiltuske, use a scripting language instead, such as Python. In fact there are already thousands of tutorials out there of how to make a web crawler using python. If you want to look into some already existing tools, you could take a look at burp suite and owasp-zap

Slavi 94 Master Poster Featured Poster

If you want to create an OS from scraat tch, just give up on it, if you are interested in the design/GUI of it, you could join one of the open source linux projects and contribute there. This same is valid for kernel coding as well, you could contribute in linux projects but for that part you have to be quite skilled with computer architecture and to know the exact system that you are working with in a way of kernel modules, memory mapping like quite indepth understanding of it

Slavi 94 Master Poster Featured Poster

I am just wondering why do you want to do that, truecrypt is already pre-installed on kali?

Slavi 94 Master Poster Featured Poster

That is python 2 by the way as ZZucker mentioned, in python 3 it is input() instead of raw_input, and print statements require brackets as well anyway,
as Dave stated loop through to ask a user if he wants to try again

Slavi 94 Master Poster Featured Poster

I would doubt it if they don't provide at least md5 checksums

or do you mean how to find the checksum of the downloaded file? In this case md5sum is a command line utility to do that, should be inbuilt in ubuntu

Slavi 94 Master Poster Featured Poster

Google's new look

Microsoft announced that they are making their own Linux OS

MSDOS mobile

Slavi 94 Master Poster Featured Poster

I never catch anything

You never catch anything that you/your AV software knows of ;)

and I have a windows partition, using Avast on it as well. Seems to be one of the best choices currently out there now especially that it is free

Slavi 94 Master Poster Featured Poster

queue.add(textField.getText())

Slavi 94 Master Poster Featured Poster

try upgrading your grub or repair it

Slavi 94 Master Poster Featured Poster

arrayList.get(0) + arrayList.get(arrayList.size() -1)

Slavi 94 Master Poster Featured Poster

I have some varaety in my music taste that is really based on what I am doing but technically ..

Classical Piano when tired,
Hardstyle when in the gym(which is pretty much daily >.>)
often youtube mixes when doing something at home or Rock
and most of the time no music at all especially when reading xD
Also, @Happygeek, if size matters I think you'll be #1 around here >.> xD

Slavi 94 Master Poster Featured Poster

If the problem persists on both OS, it is quite likely to be something with the laptop yh

Slavi 94 Master Poster Featured Poster

Try to reboot your pc, I know it sounds weird but the issue for me appears to be that alsa pulse mixer just doesn't start and if I click on it I get a message such as "Gstreamer was unable to find any sound devices ...." or something similiar, do you get that too?

Slavi 94 Master Poster Featured Poster

I have an issue with ALSA, about 1 out of 10 bootups, the audio manager is not able to start up properly, usually log out and in or reboot fixes it for me

Slavi 94 Master Poster Featured Poster

Some linux distros have sound muted by default on boot, and some are missing sound mixer such as pulse audio etc, so you need to install it. Do you have any of those on your system?

Slavi 94 Master Poster Featured Poster

int average = ((sum of Numbers)/lengthOfNumbers)

Example:

(1+2+3+4+5)/5 = 15/5 = 3

Slavi 94 Master Poster Featured Poster

because you encrypt every time the while loop runs and you don't add the new information but you overwrite it, so when you assign to encText, don't assign just the new value but append it on whatever was already in there

Kind of the same as

int values[]
while(i < 10)
    values[values.length] = i
    i++
print values //at this point you have all values of i 


while if it was like this
int values[]
while(i < 10)
    values = i
    i++
it will have only the last value of i
Slavi 94 Master Poster Featured Poster

L[:] = [(' ' if x == 32 else x) for x in L]

although I would just remove the element instead of replacing it

Slavi 94 Master Poster Featured Poster

Hello everyone!
As some of you may know, Eclipse Luna appears to be broken for users of Kali Linux. There is a simple fix for that

Assuming that you have installed Eclipse Luna

locate eclipse.ini

sudo nano eclipse.ini

add the following 2 lines before --launcher.appendVmargs

--launcher.GTK_version
2

press ctrl + x then press y and finally press Enter
That should fix it and you should be able to run eclipse.

Now, next thing to do is we want to include Eclipse in Applications Menu for easier access or for dock users(like me on xfce) we can dock Eclipse.

sudo nano /usr/share/app-install/desktop/eclipse.desktop //if this file does not exist on your system, just make an empty file and copy the content

paste this inside and FIX Icon and Exec to match your path!

[Desktop Entry]
X-AppInstall-Package=eclipse-platform
X-AppInstall-Popcon=1699
X-AppInstall-Section=main

Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/home/Slavi/Development/eclipse/icon.xpm
Exec=/home/Slavi/Development/eclipse/eclipse
Terminal=false
Categories=Application;Development;IDE;Java;
X-AppInstall-Architectures=amd64,armel,armhf,i386,ia64,mips,mipsel,powerpc,sparc

press ctrl + x then press y and finally press Enter

next step is to copy this file to the applications location, and it will automatically pop up in the Applications Menu
sudo cp eclipse.desktop /usr/share/applications/

There you go, this process can be repeared with software such as Teamspeak 3 to add it to Applications Menu, though note that Icon and Exec have to be changed to match your desired application

Slavi 94 Master Poster Featured Poster

Well, I am stuck on all operating systems(Forensic tests/vulnerability explotations), but the one that I am running about 99% of the time is Linux

Slavi 94 Master Poster Featured Poster

Is there a significant distance between your laptop's physical location and your wife's one? The signal gets weaker the further you are .. also, try with a cable as suggested, if the cable doesn't provide more than what your wifi has then it could the issue with the card

Slavi 94 Master Poster Featured Poster

I do agree with Rubber and Mike, we cannot choose for you but if you really want to dive into this study, you can really get as much as you can from both. Daniweb is a great place to start at, trust me you can learn A LOT in here

Slavi 94 Master Poster Featured Poster

She could've stopped it while updating some critical system files/booting related maybe and that could be causing the problem. Did you try to recover an earlier snapshop of it? I can't remember how to access the menu on win8 but you should be able to find it easily on google. If that doesn't go well I would personally just go for reinstall

Slavi 94 Master Poster Featured Poster

They are different instances, they have their own memory location.An example in real life would be 2 people with the same name and age. Also you could tell that they are different in BlueJ as it creates 2 different graphical objects that you can call their methods on. For example if you implement a method changeName(String name) and you call it to one of your objects, it won't have affect over the other

Slavi 94 Master Poster Featured Poster

hire a security consultant company for security assessment and present them with your logs, perhaps they can dig something out of them if the system is infected by malware such as communication to command and control server
However, if you want to do it yourself and you have no experience I would highly advise you to check those courses Here

Slavi 94 Master Poster Featured Poster

192.168.X.X is a private IP range of numbers, most of the cases used by your default gateway. It is possible to set up a server running on that address but has to be done by you, if you haven't don't expect connection there. If you are looking to 'connect' to your router's GUI configuration it might be 192.168.0.1 instead but to make sure use command ipconfig on windows systems and ifconfig on linux system to check what it shows after default gateway and then use

Oh, and if you are trying to connect to a server on your local machine either use localhost or 127.0.0.1

Slavi 94 Master Poster Featured Poster
rubberman commented: The Cplusplus.com web site is a great one! I use it all the time. +13
Slavi 94 Master Poster Featured Poster

What error do you get and where?
Also it seems like you are implementing methods inside the method main, perhaps that is your error and what you should do instead is implement them before calling the method main and then make method call to the implemented methods from within main such as:

rollADice()
return random number 1 to 6

main()
   print rollADice()
Slavi 94 Master Poster Featured Poster

Try using Tor, it is a special onion network technology, which keeps users anonymous. The traffic you generate is bounced by different nodes in the network before reaching the server that you are accessing, so it might take a bit longer for things to load but it gives you some privacy

Slavi 94 Master Poster Featured Poster

But it is the same thing :D except that I was printing just the numbers without the string "The digits are: " and the length. If I add the string in the print and another line it becomes this and prints the same thing

import java.util.Scanner;
public class Digit {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Please enter the digit: ");
        char[] numbers = ("" + input.nextInt()).toCharArray();
        for(int i = 0; i<numbers.length; i++){
            System.out.println("The digits are " + numbers[i]);
        }
        System.out.println("The length of the numbers entered by the user is: " + numbers.length);        
    }
}

when you run the program then ..

Please enter the digit: 12345
The digits are 1
The digits are 2
The digits are 3
The digits are 4
The digits are 5
The length of the numbers entered by the user is: 5
Slavi 94 Master Poster Featured Poster

Sorry I am not sure what do you mean, as it is now it will output each of those values, here's example of my terminal
daniwebDel.png

Slavi 94 Master Poster Featured Poster

Okay you've spent a week on this, now consider the following code .. as @stiltuske proposed use a char array and then print its elements

import java.util.Scanner;
public class Digit {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Please enter the digit: ");
        char[] numbers = ("" + input.nextInt()).toCharArray();
        for(int i = 0; i<numbers.length; i++){
            System.out.println(numbers[i]);
        }        
    }
}

Output:
Please enter the digit: 123

1
2
3
Slavi 94 Master Poster Featured Poster

get char at position 0 and char at position (length -1) because 0 based, then print those easy as that

Slavi 94 Master Poster Featured Poster

if the class is not in the same package you need to import it

Slavi 94 Master Poster Featured Poster

shouldn't address and phone number be fields of the person class?

Person
    Name
    Age
    Address
    PhoneNumber



Then if you want to have your objects in the arraylist
person1 = new Person(name,age,address,phonenumber)
person2 = new Person(name,age,address,phonenumber)
person3 = new Person(name,age,address,phonenumber)
arraylist.add(..)...
JamesCherrill commented: That's right. +15
Slavi 94 Master Poster Featured Poster

Hey guys,
not sure how but my conky manager pretty much just dissapeared earlier today and I had to download the package and reinstall it again. However upon installation some dependancies were not met ..
//I had apparently fixed this issue in the passed but I can't find nor remember how I did it ..
This is the issue:

The following packages have unmet dependencies:
 conky-manager : Depends: libglib2.0-0 (>= 2.35.9) but 2.33.12+really2.32.4-5 is installed

I just downloaded the latest version of libglib2 from Click Here and tried to install it but I get error that

dpkg: regarding libglib2.0-0_2.42.1-1_amd64.deb containing libglib2.0-0:amd64:
 libglib2.0-0:amd64 breaks glib-networking (<< 2.33.12)
  glib-networking:amd64 (version 2.32.3-1) is present and installed.

dpkg: error processing libglib2.0-0_2.42.1-1_amd64.deb (--install):
 installing libglib2.0-0:amd64 would break glib-networking:amd64, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 libglib2.0-0_2.42.1-1_amd64.deb

so I was wondering basically what to do to fix it ..

Also I ran conky manager and I have a widget running in the background but the package manager just shows that there are unmet dependencies and I can't install new packages through apt-get, returns an error that there are broken dependencies and to try apt-get install -f, however that only gives me the option to remove conky manager

OS - Kali Linux

Slavi 94 Master Poster Featured Poster

Go to google and check around for google python class babynames, they have a solution presented as well. The idea is to extract people names from a table from a webpage. Seems kind of the same thing, so check it out

Slavi 94 Master Poster Featured Poster

The problem is that your html variable is just a string containing this value
https://www.daniweb.com/software-development/python/threads/492669/how-to-print-only-the-content-of-all-tags-from-a-url-page
and not the actual HTML code ... the library that you have imported urllib2 .. use it to get the code from that page
Read urllib2
and also the example from there ..

import urllib2
response = urllib2.urlopen('http://python.org/')
html = response.read()

also.. should this >>> re.findall(r'<p>(.+),/p>', html)
be >>> re.findall(r'<p>(.+)</p>', html)?
and I am not sure if you read the link I gave you earlier about regular expression but the . matches any character including space. The + stands for that get all character that match the pattern stated which in our case was the . representing any character between <li></li> as in get all characters that match the pattern, as if it was only . without + it will simply return a single character that matches the pattern

Slavi 94 Master Poster Featured Poster

Use regular expressions Click Here

Here's quick example ..

>>> import re
>>> html = 'randomstuff<li>I am some text 12345</li>randomstuff'
>>> re.findall(r'<li>(.+)</li>',html)
['I am some text 12345']
Slavi 94 Master Poster Featured Poster

Yes we do! - > Click Here

Slavi 94 Master Poster Featured Poster

I stil don't understand your reasoning behind not using a set, will be 1 line solution. Anyhow, this should work(pseudo):

removeDuplicates(int[] arrayNumbers)
    int[] result
    for number in arrayNumbers
        if number not in result: append(number) to result
    return result
Slavi 94 Master Poster Featured Poster

The ping results seem sufficient, not that much loss of packets even though there is some. Could you make a test in Click Here and show us what is the download/upload speed of your connection? You will be presented with a link to the test that you can share with us, unless you take a screenshot. Perhaps also the increase in speed is due to less people active on the network .. as rubben said 10 mbps for 100 people is not exactly a connection with great speed ..

Slavi 94 Master Poster Featured Poster

My choice for python is Sublime Text 3 with additional plugins such as Anaconda, it all makes the text editor a complete IDE for python, nice highlihting and its highly customizable, love it

Slavi 94 Master Poster Featured Poster

What if you use a data structure called Set, it doesn't hold duplicate elements

Slavi 94 Master Poster Featured Poster

like this?

>>> aList
[[2.2, 1.1, 3.1], [4.1, 8.2, 3.6]]
>>> newList = []
>>> for row in aList:
...     newList.append(sum(row)/len(row))
>>> newList
[2.1333333333333333, 5.3]
Slavi 94 Master Poster Featured Poster

Um, you are trying to sort a list of floas?

>>> aList = [5.5 , 4.1 , 7.6 , 2.9]
>>> sorted(aList, reverse = True)
[7.6, 5.5, 4.1, 2.9]

Or if your list is a list of lists and you want to sort each of the lists individually

>>> aList = [[2.2,1.1,3.1],[4.1,8.2,3.6]]
>>> newList = []
>>> for row in aList:
...     newList.append(sorted(row))
>>> newList
[[1.1, 2.2, 3.1], [3.6, 4.1, 8.2]]
Slavi 94 Master Poster Featured Poster

Oh, forgot to mention that this

>>> sorted(student_tuples, key=itemgetter(2))
[('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]

they are sorting with key=itemgetter(2), I assume your sorting should be itemgetter(1)

Slavi 94 Master Poster Featured Poster

Consider the following example from Click Here

>>> from operator import itemgetter, attrgetter, methodcaller

>>> sorted(student_tuples, key=itemgetter(2))
[('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]

>>> sorted(student_objects, key=attrgetter('age'))
[('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]

you can do the same with Reversed=True will sort it opposite order