python – guess your number

Simple script that asks you to think of a number between 1 and 63 then offers list of numbers and asks if your number is in that list. Can this be refactored further? Are there better ways to create lists? Any improvements?

x= (xx for xx in range(1,64))
num_i = (i for i in range(1,64,2))
num_ii = x(1::16)+ x(2::16)+ x(5::16)+ x(6::16)+ 
         x(9::16)+ x(10::16)+ x(13::16)+ x(14::16)
num_iii= x(3::16)+ x(4::16)+ x(5::16)+ x(6::16)+ 
         x(11::16)+ x(12::16)+ x(13::16)+ x(14::16)
num_iv=  x(7::16)+ x(8::16)+ x(9::16)+ x(10::16)+ 
        x(11::16)+ x(12::16)+ x(13::16)+ x(14::16)
num_v= x(15::32)+ x(16::32)+ x(17::32)+ x(18::32)+ 
       x(19::32)+ x(20::32)+ x(21::32)+ x(22::32)+ 
       x(23::32)+ x(24::32)+ x(25::32)+ x(26::32)+ 
       x(27::32)+ x(28::32)+ x(29::32)+ x(30::32)
num_vi= (x for x in range(32,64))
addition_num= (1,2,4,8,16,32)
start_end= ("Think of a number between 1 and 63","I think the number you thought of was ...")
intro= ("Is your number in the group of numbers below?",
        "Is your number in this group of numbers ?","Is your number in this third group of numbers ?",
        "Half way there. Is your number in this group of numbers ?",
        "One more after this one. Is your number in this group of numbers ?",
        "Last one. Is your number in this group of numbers ?")
def format_list(xx):    
    for a,b,c,d,e,f,g,h in zip(xx(::8),xx(1::8),xx(2::8),xx(3::8),xx(4::8),xx(5::8),xx(6::8),xx(7::8)):
def main():    
    your_guess= 0
    ready= input('are you ready?(enter to quit or any key)')
    if ready:
        while count < 6:
            reply = input("y/n ?")
            if reply == "y" :
                your_guess += addition_num(count)
            count +=1
    print(start_end(1) + str(your_guess))
    replay= input('Play again? (enter to quit or any key)')
    if replay:        
if __name__ == '__main__':

How can I brute force guess the passphrase for a Bitcoin Wallet (Andreas Schildbach) backup file?

I have a 2013-2014 240-byte wallet backup file from Bitcoin Wallet (by )Andreas Schildbach).

How can I use hashcat or similar to brute force guess the wallet encryption phrase?

centos – I had some drbd (i guess block devices?) on my server, after a crash they are all gone

I am not a sys admin but inherited some servers setup with no documentation in linux. Today the server died in a way it was unresponsive and the VMs running on it down…after a good few hours the server reboot itself, so could ssh to it again but realized what used to show up in /dev as

/dev/drbd1 etc etc

Are no longer there at all…I am guessing a drive or a series of drives went kaput. A command

cli64 vsf info

Shows that my areca disk array is checking three (volumes? block devices? thingies?) and doing it slowwwlllyyyy…

  # Name             Raid Name       Level   Capacity Ch/Id/Lun  State
  1 ARC-1883-VOL#000 vm-cache        Raid3    300.0GB 00/00/00   Normal
  2 ARC-1883-VOL#001 data            Raid6   12000.0GB 00/00/01   Checking(50.4%)
  3 ARC-1883-VOL#002 apogee          Raid6   9000.0GB 00/00/02   Checking(50.6%)
  4 ARC-1883-VOL#004 database        Raid1+0 3000.0GB 00/00/03   Normal
  5 ARC-1883-VOL#005 system          Raid1+0 3000.0GB 00/00/04   Normal
  6 ARC-1883-VOL#006 archive         Raid6   6000.0GB 00/00/05   Checking(74.3%)
  7 VM-Cache Backup  VM-Cache Backup Raid1+0 2000.0GB 00/00/06   Normal
  8 VS Apogee Backup RS Apogee BackupRaid0   3000.0GB 00/00/07   Normal
  9 ARC-1883-VOL#008 TPM             Raid1+0 1500.0GB 00/01/00   Normal
 10 SDSS-BACKUP-VOLU SDSS-BACKUP-RAIDRaid0   1000.0GB 00/01/01   Normal
GuiErrMsg<0x00>: Success.

It is my hope once the checks are done I will once again see the /dev/drbd folders so I can mount them and get my VM Image files off of them …. though I think that is wishful thinking. I am not sure what else to poke around to find and try to have it where drbd once again exists in my /dev directory.

Normally the command to get the VMs setup and ready to use is a :

drbdadm primary –force all

mount -o noatime /dev/drbd/by-res/vm-cache /vm-cache

then lo and behold the /vm-cache has all the .img files…..
Though with the /dev/drbd missing, this mount is of course failling.

Does an attacker need to guess or brute-force a password for TCP spoofing?

From my understanding, TCP spoofing can be carried out if the attacker can correctly guess the sequence numbers from the response packets (to mimic the real client). The attacker may even obtain this sequence of numbers via sniffing. Furthermore, a trusted connection must already exist between the target client and the server in order for the attacker to intercept/spoof

However, I was a bit unclear as to whether the attacker would need to gain initial access to the system or network (by guessing or brute-forcing their password). In order to send the sequence numbers from response packets to the server, does the attacker need to have access to it? I am not sure whether this attacker can just send the SYN packets to the server without any access to the system/network. My concept of these things is a bit blurry right now and I would greatly appreciate some advice.

Thank you!

calculus – A question about implicit differentiation I guess

Thanks for contributing an answer to Mathematics Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

hacking – Guess current date/time on remote server

I want to know the current date/time of a remote server.
I do not have any access on this server.

This server expose OpenSSH (port 22) and apache2 (port 80)

Is there a fingerprint technique that can reveal current timestamp on this 2 services ?


When importing a wallet from private key or seed phrase, how do you guess the correct address format?

How do I determine the derivation path for the seed when importing it?

I don’t think you can determine the derivation path from the seed phrase, you have to ask the user to choose one from a list or input it if not listed. You can build in a list of derivation paths for popular wallets, the user then has to know the name, and maybe version number, of the wallet that produced the seed they are importing.

or do i just do a wallet address lookup based on the supported derivation paths and keep searching for about 20 address if it has any transactions on the blockchain ?

That would work in many cases. It assumes you have access to a full copy of the blockchain indexed by all addresses with non-zero balance. It needn’t be local but a non-local source might make your seed-importation take a long time.

code request: finding the best fit for a given datum and the best guess values ​​when fitting a given equation

If I have the following information

What the following figure gives:


I have two questions:

1) Is there a way that Mathematica with a code can tell you what's the best choice for this data and give you the parameters?
2) If I wanted to adjust these data, let's say the following equation: r10 E^(-((r00 - x)/r20)) r20^-r30 (r00 - x)^(-1 + r30) where am i using the following code NonlinearModelFit(data,r10 E^(-((r00 - x)/r20)) r20^-r30 (r00 - x)^(-1 + r30), {{r10,0.62}, {r20, 0.5}, {r30, 22}}, x); Is there a way to ask Mathica or know what would be the best guesses for this or any data? In this case, the guess values ​​for r10,r20 and r30 they are not correct and i am not sure how i will find the best guess to try to fit this data to that equation and see if that fits or not.

Thank you

plot – `FindRoot`: root varies greatly with initial guess

I am trying to get a graph between two related variables through an equation as follows:

solk(logn_?NumericQ) := 
 logk /. FindRoot((1.9894350000000002`*^-10 10^
        logn (-1 + 10^logn) Cos(
        200 (10^-logk)*ArcSinh(5*10^2 (10^logk))))/
     Sqrt(1 + (25*10^2 10^(2 logk))) == -(3/
       100000), {logk, -5, -200, 0})

list = Table({logn, Quiet@solk(logn)}, {logn, 1/100, 5, 1/100});

p1 = ListLinePlot(list, PlotRange -> {{0, 5}, Full})

As you can see, I'm taking an initial guess from logk = -5 which gives me a bit of a plot. Now, I change the initial assumption of -1 to -120 (yes literally one step at a time) and try to observe the behavior. The behavior is:

  1. <img src = "" alt = "for the initial guess as -3"/>
  2. <img src = "" alt = "for the initial assumption as -5"/>
  3. <img src = "" alt = "for the initial guess as -5 with DampingFactor->0.001"/>
  4. <img src = "" alt = "for the initial guess as -10 or less "/>

Image 1: for initial guess as -3

Image 2: for initial guess as -5

Image 3: for initial guess as -5 with DampingFactor->0.001

Image 4: for initial guess as -10 or less

Note that for an initial guess less than or equal to -10 (say the assumption is x) the plot has exactly the same behavior: the plot has a plane logk value of x until logn It is around 3 and then immediately jumps to the maximum value of logk range provided to FindRoot.

Can anyone help me get the correct result here? Do I need to use any other algorithms here? From this graph I need to be able to say things like: "When logk is around -120 (more or less), then the value of logn is something.

So I guess most people in the medical field are liberals?

While I have never seen a Gallup poll or one that addresses this question; I have 30 years in healthcare to answer this question. I would say that at the national level it is 60/40 conservative, but with some caveats. For example, I believe that most people in health care support some form of Medicare for all. But it wouldn't support patients who don't take care of themselves using the benefits. They would support the right to end life, but they would not support abortion. They would support medical marijuana, but not the legalization of marijuana. So it's a little complicated.